Skip to content

Instantly share code, notes, and snippets.

@metalelf0
Created October 28, 2011 09:11
Show Gist options
  • Save metalelf0/1321926 to your computer and use it in GitHub Desktop.
Save metalelf0/1321926 to your computer and use it in GitHub Desktop.
def expire_date_minus_one_day
self.expire_date - 1.day
end
def expire_date_minus_one_day= date
self.expire_date = date + 1.day
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment