Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment