Module: ActiveFedora::Associations::Builder::Orders::FixFirstLast

Defined in:
lib/active_fedora/associations/builder/orders.rb

Instance Method Summary collapse

Instance Method Details

#save(*args) ⇒ Object



43
44
45
46
47
# File 'lib/active_fedora/associations/builder/orders.rb', line 43

def save(*args)
  super.tap do |result|
    apply_first_and_last if result
  end
end

#save!(*args) ⇒ Object



49
50
51
52
53
# File 'lib/active_fedora/associations/builder/orders.rb', line 49

def save!(*args)
  super.tap do |result|
    apply_first_and_last if result
  end
end