Sha256: 3673157164c4a8a973ad7418ceceb825e748cadfe69649a2d2d81e9c712418bd
Contents?: true
Size: 340 Bytes
Versions: 37
Compression:
Stored size: 340 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! self.update_attribute(:blocked, true) end end
Version data entries
37 entries across 37 versions & 2 rubygems