Skip to content

Instantly share code, notes, and snippets.

@dansteen
Created November 8, 2010 02:17
Show Gist options
  • Save dansteen/667306 to your computer and use it in GitHub Desktop.
Save dansteen/667306 to your computer and use it in GitHub Desktop.
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