Class: SerializeAttributes::Store::AttributeSet

Inherits:
ActiveModel::AttributeSet
  • Object
show all
Defined in:
lib/serialize_attributes/store.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



168
169
170
171
172
173
174
# File 'lib/serialize_attributes/store.rb', line 168

def ==(other)
  attributes == if other.is_a?(Hash)
                  other
                else
                  other.attributes
                end
end