diff options
Diffstat (limited to 'railties/lib/generators/active_record.rb')
-rw-r--r-- | railties/lib/generators/active_record.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generators/active_record.rb b/railties/lib/generators/active_record.rb index 6640988c40..64bee3904e 100644 --- a/railties/lib/generators/active_record.rb +++ b/railties/lib/generators/active_record.rb @@ -25,7 +25,7 @@ module ActiveRecord "#{klass}.all" end - def self.find(klass, params) + def self.find(klass, params=nil) "#{klass}.find(#{params})" end @@ -41,7 +41,7 @@ module ActiveRecord "#{name}.save" end - def update_attributes(params) + def update_attributes(params=nil) "#{name}.update_attributes(#{params})" end |