Sha256: 8eb032f4cc2d338df9632ba3aca49acbb8b2ea51ae039934cdf65496d43db4d6
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
module Feeder module Concerns::Models::Item extend ActiveSupport::Concern included do include Feeder::Concerns::Helpers::Filter belongs_to :feedable, polymorphic: true def type feedable_type.underscore end def report self.update reported: true end def block self.update blocked: true end def unreport self.update reported: false end def unblock self.update blocked: false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feeder-0.5.1 | lib/feeder/concerns/models/item.rb |