spec/support/models/user.rb in grape-active_model_serializers-1.4.0 vs spec/support/models/user.rb in grape-active_model_serializers-1.5.0

- old
+ new

@@ -1,7 +1,12 @@ class User - include ActiveModel::SerializerSupport + include ActiveModel::Serialization + attr_accessor :first_name, :last_name, :password, :email + + def self.model_name + to_s + end def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end