Created
November 8, 2010 02:17
-
-
Save dansteen/667306 to your computer and use it in GitHub Desktop.
This file contains 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
class Call < ActiveRecord::Base | |
# we need to override our date setters to ensure that we can accept the format provided | |
# by the forms | |
def time=(_time) | |
if _time.class == String | |
_time=DateTime.parse _time | |
end | |
p 'this is a test' | |
super _time | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment