Sha256: 629e3fe88803224b3d8a2076a879e155e3b73f705572fa162d4cf5dacf9e7b08
Contents?: true
Size: 349 Bytes
Versions: 16
Compression:
Stored size: 349 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
16 entries across 16 versions & 1 rubygems