lib/tekeya/feed/notification.rb in tekeya-0.0.7 vs lib/tekeya/feed/notification.rb in tekeya-0.0.9
- old
+ new
@@ -13,10 +13,11 @@
accepts_nested_attributes_for :actors, :subject
validates_presence_of :actors
attr_writer :group_with_recent
+ attr_accessible :entity, :subject, :actors, :notification_type, :read, :group_with_recent
end
module ClassMethods
def notify!(to_notify, notification_type, subject, *args)
options = args.extract_options!
@@ -88,6 +89,6 @@
# floors the timestamp to the nearest 15 minute
return Time.at((stamp.to_f / 15.minutes).floor * 15.minutes)
end
end
end
-end
\ No newline at end of file
+end