module Undelivered::ReadMark::ClassMethods
Public Instance Methods
acts_as_readable(options)
click to toggle source
# File lib/undelivered/read_mark.rb, line 48 def acts_as_readable(options) raise Error, '`on` must be included in readable options' unless options.include?(:on) include ReadMark::InstanceMethods class_attribute :read_mark_options self.read_mark_options = options has_many :read_marks, class_name: 'Undelivered::ReadMark', as: :readable, dependent: :destroy end
acts_as_reader()
click to toggle source
# File lib/undelivered/read_mark.rb, line 44 def acts_as_reader has_many :read_marks, class_name: 'Undelivered::ReadMark', as: :reader, dependent: :destroy end