tab/app/models/notification.rb
2017-01-09 16:22:58 +01:00

8 lines
115 B
Ruby

class Notification < ActiveRecord::Base
belongs_to :user
def read!
update_attributes read: true
end
end