Permalink
Browse files

Split ridiculously long line

  • Loading branch information...
1 parent 29ed612 commit 740dbf8d42f6bef86845086690ac522cf91ceece @marcandre marcandre committed Nov 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 activerecord/lib/active_record/migration/command_recorder.rb
@@ -51,7 +51,10 @@ def respond_to?(*args) # :nodoc:
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)

0 comments on commit 740dbf8

Please sign in to comment.