Sha256: 4da6a01a96423a15bfaa9c847f9603eaa087a3071eeb62d5daed3a582f4c2d74

Contents?: true

Size: 380 Bytes

Versions: 54

Compression:

Stored size: 380 Bytes

Contents

module ActiveFedora
  module AttributeMethods
    module Dirty
      extend ActiveSupport::Concern

      def set_value(*val)
        attribute = val.first
        unless [:has_model, :modified_date].include? attribute
          attribute_will_change!(attribute) unless Array(self[val.first]).to_set == Array(val.last).to_set
        end
        super
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
active-fedora-15.0.1 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-15.0.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-14.0.1 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-14.0.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-13.3.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-12.2.4 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-13.2.7 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-13.2.5 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-13.2.4 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-12.2.3 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-13.2.3 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-13.2.2 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-13.2.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-13.1.3 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-11.5.6 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-12.2.2 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-11.2.1 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-12.2.1 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-12.0.3 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-11.5.5 lib/active_fedora/attribute_methods/dirty.rb