Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Follow.column_names
- => ["id", "followable_id", "followable_type", "follower_id", "follower_type", "blocked", "created_at", "updated_at"]
- 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
Add Comment
Please, Sign In to add comment