lib/pupper/model.rb in pupper-0.2.0 vs lib/pupper/model.rb in pupper-0.2.1

- old
+ new

@@ -17,9 +17,11 @@ include Pupper::ApiAssociations delegate :backend, to: :class def initialize(**args) + args.slice!(*self.class._attributes) + assocs, attrs = args.partition do |attr, value| attr.to_s =~ /_u?id$/ || value.is_a?(Hash) || value.is_a?(Array) end.map(&Hash.method(:[])) assocs = build_associations(assocs)