Class: Message
- Inherits:
-
Object
- Object
- Message
- Defined in:
- lib/core_ext/error_comparsion.rb
Instance Method Summary collapse
- #compare_with_active_model_error(other) ⇒ Object (also: #<=>)
- #equals_with_active_model_error(other) ⇒ Object (also: #==)
Instance Method Details
#compare_with_active_model_error(other) ⇒ Object Also known as: <=>
18 19 20 21 |
# File 'lib/core_ext/error_comparsion.rb', line 18 def compare_with_active_model_error(other) other = other.to_s if ActiveModel::Error === other compare_without_active_model_error(other) end |
#equals_with_active_model_error(other) ⇒ Object Also known as: ==
11 12 13 14 |
# File 'lib/core_ext/error_comparsion.rb', line 11 def equals_with_active_model_error(other) other = other.to_s if ActiveModel::Error === other equals_without_active_model_error(other) end |