Sha256: 11e1eb47e8e311a1c9772898d06ffd31d883d7a6773449b7c8eac5d394287b1f
Contents?: true
Size: 335 Bytes
Versions: 14
Compression:
Stored size: 335 Bytes
Contents
class Follow < ActiveRecord::Base extend ActsAsFollower::FollowerLib extend ActsAsFollower::FollowScopes # NOTE: Follows belong to the "followable" interface, and also to followers belongs_to :followable, polymorphic: true belongs_to :follower, polymorphic: true def block! update_attribute(:blocked, true) end end
Version data entries
14 entries across 14 versions & 2 rubygems