Sha256: 42cd6e69becccf8d370fddf5f091c6df48bcdd7421af0799bbeaf6dccea04358
Contents?: true
Size: 350 Bytes
Versions: 39
Compression:
Stored size: 350 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
39 entries across 39 versions & 4 rubygems