diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-25 20:59:18 -0300 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-07-26 18:55:51 +0200 |
commit | fd589db8633ef3eda398365f2a6d551edfed547e (patch) | |
tree | eb58e0c657d54949d58fb2d74f92701106d354c2 /railties/guides/source/plugins.textile | |
parent | 37d82f2ca0f8e81d473969586e70826f27538072 (diff) | |
download | rails-fd589db8633ef3eda398365f2a6d551edfed547e.tar.gz rails-fd589db8633ef3eda398365f2a6d551edfed547e.tar.bz2 rails-fd589db8633ef3eda398365f2a6d551edfed547e.zip |
Changed returning with tap on guides
Diffstat (limited to 'railties/guides/source/plugins.textile')
-rw-r--r-- | railties/guides/source/plugins.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/plugins.textile b/railties/guides/source/plugins.textile index e853ba79e9..82f2276153 100644 --- a/railties/guides/source/plugins.textile +++ b/railties/guides/source/plugins.textile @@ -1274,7 +1274,7 @@ class YaffleMigrationGenerator < Rails::Generator::NamedBase end def yaffle_local_assigns - returning(assigns = {}) do + {}.tap do |assigns| assigns[:migration_action] = "add" assigns[:class_name] = "add_yaffle_fields_to_#{custom_file_name}" assigns[:table_name] = custom_file_name |