Sha256: 79aa31765bcd1de719280831e8388801a83ea6b6003251d59dfb733ced5fe1d0

Contents?: true

Size: 352 Bytes

Versions: 33

Compression:

Stored size: 352 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 self[val.first] == val.last
        end
        super
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
active-fedora-10.3.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-9.7.3 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.3.0.rc2 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.3.0.rc1 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.2.1 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.2.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.1.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.1.0.rc1 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-9.7.2 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.0.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.0.0.beta4 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.0.0.beta3 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.0.0.beta2 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-10.0.0.beta1 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-9.13.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-9.12.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-9.11.0 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-9.10.4 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-9.10.3 lib/active_fedora/attribute_methods/dirty.rb
active-fedora-9.10.2 lib/active_fedora/attribute_methods/dirty.rb