Module: Extendable

Included in:
Membership, Pass
Defined in:
app/models/extendable.rb

Instance Method Summary collapse

Instance Method Details

#adjust_expiration_to(new_ends_at) ⇒ Object



2
3
4
5
# File 'app/models/extendable.rb', line 2

def adjust_expiration_to(new_ends_at)
  self.ends_at = new_ends_at
  self.save
end