diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-11-19 00:26:55 -0500 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-12-21 13:54:51 -0500 |
commit | 740dbf8d42f6bef86845086690ac522cf91ceece (patch) | |
tree | 7de2e0299fce3f81a9fb76a5f7d0fe1ba5c22e14 | |
parent | 29ed612bd9d8693d90a7a82b63003ca27a74a44f (diff) | |
download | rails-740dbf8d42f6bef86845086690ac522cf91ceece.tar.gz rails-740dbf8d42f6bef86845086690ac522cf91ceece.tar.bz2 rails-740dbf8d42f6bef86845086690ac522cf91ceece.zip |
Split ridiculously long line
-rw-r--r-- | activerecord/lib/active_record/migration/command_recorder.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/migration/command_recorder.rb b/activerecord/lib/active_record/migration/command_recorder.rb index 95f4360578..55c384ae41 100644 --- a/activerecord/lib/active_record/migration/command_recorder.rb +++ b/activerecord/lib/active_record/migration/command_recorder.rb @@ -51,7 +51,10 @@ module ActiveRecord super || delegate.respond_to?(*args) end - [:create_table, :create_join_table, :change_table, :rename_table, :add_column, :remove_column, :rename_index, :rename_column, :add_index, :remove_index, :add_timestamps, :remove_timestamps, :change_column, :change_column_default, :add_reference, :remove_reference].each do |method| + [:create_table, :create_join_table, :change_table, :rename_table, :add_column, :remove_column, + :rename_index, :rename_column, :add_index, :remove_index, :add_timestamps, :remove_timestamps, + :change_column, :change_column_default, :add_reference, :remove_reference, + ].each do |method| class_eval <<-EOV, __FILE__, __LINE__ + 1 def #{method}(*args) # def create_table(*args) record(:"#{method}", args) # record(:create_table, args) |