Sha256: 414e12be053d63126afa18463feb750b4e01c24e3da77b1302a2b8dec4403067
Contents?: true
Size: 243 Bytes
Versions: 2
Compression:
Stored size: 243 Bytes
Contents
module Toy module Equality extend ActiveSupport::Concern def eql?(other) self.class.eql?(other.class) && attributes == other.attributes end alias_method :==, :eql? def hash attributes.hash end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
toystore-0.13.2 | lib/toy/equality.rb |
toystore-0.13.1 | lib/toy/equality.rb |