instance method
set_local_assigns!
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v3.2.22.5Signature
set_local_assigns!()
No documentation comment.
Source
# File activerecord/lib/rails/generators/active_record/migration/migration_generator.rb, line 16
def set_local_assigns!
if file_name =~ /^(add|remove)_.*_(?:to|from)_(.*)/
@migration_action = $1
@table_name = $2.pluralize
end
end
Defined in activerecord/lib/rails/generators/active_record/migration/migration_generator.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Generators::MigrationGenerator