Class: ActiveRecord::ConnectionAdapters::CipherStashPG::OID::Macaddr
- Inherits:
-
Type::String
- Object
- Type::String
- ActiveRecord::ConnectionAdapters::CipherStashPG::OID::Macaddr
- Defined in:
- lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/macaddr.rb,
lib/active_record/connection_adapters/7.0/cipherstash_pg/oid/macaddr.rb,
lib/active_record/connection_adapters/7.1/cipherstash_pg/oid/macaddr.rb
Overview
:nodoc:
Instance Method Summary collapse
- #changed?(old_value, new_value, _new_value_before_type_cast) ⇒ Boolean
- #changed_in_place?(raw_old_value, new_value) ⇒ Boolean
- #type ⇒ Object
Instance Method Details
#changed?(old_value, new_value, _new_value_before_type_cast) ⇒ Boolean
12 13 14 15 |
# File 'lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/macaddr.rb', line 12 def changed?(old_value, new_value, _new_value_before_type_cast) old_value.class != new_value.class || new_value && old_value.casecmp(new_value) != 0 end |
#changed_in_place?(raw_old_value, new_value) ⇒ Boolean
17 18 19 20 |
# File 'lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/macaddr.rb', line 17 def changed_in_place?(raw_old_value, new_value) raw_old_value.class != new_value.class || new_value && raw_old_value.casecmp(new_value) != 0 end |
#type ⇒ Object
8 9 10 |
# File 'lib/active_record/connection_adapters/6.1/cipherstash_pg/oid/macaddr.rb', line 8 def type :macaddr end |