motion-prime/models/model.rb in motion-prime-0.3.1 vs motion-prime/models/model.rb in motion-prime-0.3.2

- old
+ new

@@ -72,10 +72,10 @@ # # Examples: # User.new(name: "Bob", age: 10) # # @return MotionPrime::BaseModel unsaved model - def new(data = {}) + def new(data = {}, options = {}) data.keys.each { |k| unless self.attributes.member? k.to_sym raise StoreError, "'#{k}' is not a defined attribute for this model" end }