Module: ActiveFedora::AttributeMethods::Dirty

Extended by:
ActiveSupport::Concern
Defined in:
lib/active_fedora/attribute_methods/dirty.rb

Instance Method Summary collapse

Instance Method Details

#set_value(*val) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/active_fedora/attribute_methods/dirty.rb', line 6

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