lib/generators/mindapp/templates/app/models/mindapp/notice.rb in mindapp-0.0.7 vs lib/generators/mindapp/templates/app/models/mindapp/notice.rb in mindapp-0.0.8

- old
+ new

@@ -6,8 +6,9 @@ field :unread, :type => Boolean field :ip, :type => String belongs_to :user def self.recent(user_id, ip) - where(unread: true, user_id: user_id, ip: ip).last + where(unread: true, ip: ip).last + # where(unread: true, user_id: user_id, ip: ip).last end end