From 0b502cb87906505e519b404ef2cd1d607c89a44a Mon Sep 17 00:00:00 2001 From: Fred Wu Date: Wed, 19 Jun 2013 23:32:05 +1000 Subject: Fixes AciveModel::Model with no ancestors, fixes #11004 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- activemodel/lib/active_model/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/lib/active_model') 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+. -- cgit v1.2.3