Guest User

Untitled

a guest
Jun 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2. class Call < ActiveRecord::Base
  3.  
  4. # we need to override our date setters to ensure that we can accept the format provided
  5. # by the forms
  6. def time=(_time)
  7. if _time.class == String
  8. _time=DateTime.parse _time
  9. end
  10. p 'this is a test'
  11. super _time
  12. end
  13.  
  14. end
Add Comment
Please, Sign In to add comment