Method: ActiveAgent::Providers::Common::BaseModel#==
- Defined in:
- lib/active_agent/providers/common/model.rb
#==(other) ⇒ Boolean
Compares equality based on serialized representation.
Two models are equal if their serialized hashes are equal, regardless of object identity. This allows value-based equality comparisons.
355 356 357 |
# File 'lib/active_agent/providers/common/model.rb', line 355 def ==(other) serialize == other&.serialize end |