From f1383c49700c046a860e4ba2311ae65eb94eabf5 Mon Sep 17 00:00:00 2001 From: Gabriel Naiman Date: Tue, 9 Mar 2021 14:00:57 -0300 Subject: [PATCH] Change initialization order --- lib/rasti/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rasti/model.rb b/lib/rasti/model.rb index 6682d3d..c4daa01 100644 --- a/lib/rasti/model.rb +++ b/lib/rasti/model.rb @@ -56,8 +56,8 @@ def inherited(subclass) end def initialize(attributes={}) - validate_defined_attributes! attributes.keys.map(&:to_sym) @__attributes__ = attributes + validate_defined_attributes! attributes.keys.map(&:to_sym) end def merge(new_attributes)