Created
October 28, 2011 09:11
-
-
Save metalelf0/1321926 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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