aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorFred Wu <ifredwu@gmail.com>2013-06-19 23:32:05 +1000
committerJosé Valim <jose.valim@plataformatec.com.br>2013-06-19 17:16:04 +0200
commit0b502cb87906505e519b404ef2cd1d607c89a44a (patch)
treebf005ea97efa34db20c2a1dfcf5fe2792cadb958 /activemodel/lib
parente47b6dee858e62dceba867dd160b968d679c82e8 (diff)
downloadrails-0b502cb87906505e519b404ef2cd1d607c89a44a.tar.gz
rails-0b502cb87906505e519b404ef2cd1d607c89a44a.tar.bz2
rails-0b502cb87906505e519b404ef2cd1d607c89a44a.zip
Fixes AciveModel::Model with no ancestors, fixes #11004
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/model.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/model.rb b/activemodel/lib/active_model/model.rb
index ee5bc9e4d8..5904d686e5 100644
--- a/activemodel/lib/active_model/model.rb
+++ b/activemodel/lib/active_model/model.rb
@@ -80,7 +80,7 @@ module ActiveModel
self.public_send("#{attr}=", value)
end if params
- super
+ super(*params)
end
# Indicates if the model is persisted. Default is +false+.