lib/time_attr_accessor.rb in inbox-0.7.0 vs lib/time_attr_accessor.rb in inbox-0.8.0

- old
+ new

@@ -1,8 +1,8 @@ module Inbox module TimeAttrAccessor def time_attr_accessor(attr) - attr_reader attr + parameter attr define_method "#{attr}=" do |value| instance_variable_set "@#{attr}", Time.at(value).utc end end end \ No newline at end of file