Sha256: 7c142e92f089e9a3bac7fea27a741e21e17f224992990128ae2a87b6e0004b03

Contents?: true

Size: 244 Bytes

Versions: 5

Compression:

Stored size: 244 Bytes

Contents

module ActiveRecordIgnoredAttributes::SameAttributesAs
  def same_attributes_as?(other)
    self. attributes_without_ignored_attributes ==
    other.attributes_without_ignored_attributes
  end
  alias_method :same_as?, :same_attributes_as?
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_record_ignored_attributes-0.0.5 lib/active_record_ignored_attributes/same_attributes_as.rb
active_record_ignored_attributes-0.0.4 lib/active_record_ignored_attributes/same_attributes_as.rb
active_record_ignored_attributes-0.0.3 lib/active_record_ignored_attributes/same_attributes_as.rb
active_record_ignored_attributes-0.0.2 lib/active_record_ignored_attributes/same_attributes_as.rb
active_record_ignored_attributes-0.0.1 lib/active_record_ignored_attributes/same_attributes_as.rb