ledermann / unread

Handle unread records and mark them as read with Ruby on Rails
MIT License
739 stars 121 forks source link

Adding a new .read?(current_user) instance method in readable.rb InstanceMethods #116

Open ishields opened 4 years ago

ishields commented 4 years ago

Currently there is only a .unread? method which means to determine if something is read you need to do !thing.unread(current_user). Would it be a good idea to add a .read?(current_user) method?

def read?(reader)
    !unread?(reader)
end