Permalink
Browse files

No need for if_params at the end of the initializer as an initializer

always returns the object instance
  • Loading branch information...
1 parent 60ac540 commit 9f35d5e174ec3748c118bfa0fc40650daf07d733 @oscardelben committed Apr 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/model.rb
@@ -66,7 +66,7 @@ def self.included(base)
def initialize(params={})
params.each do |attr, value|
self.public_send("#{attr}=", value)
- end if params
+ end
end
def persisted?

0 comments on commit 9f35d5e

Please sign in to comment.