Skip to content

Commit

Permalink
Change initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Naiman committed Mar 9, 2021
1 parent e689d9d commit f1383c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rasti/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f1383c4

Please sign in to comment.