Sha256: 75ce15ca3a57ff5eeee18310abcfa2bf916ebc6372b8e2895e17a233deb16103

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

class Follow < ActiveRecord::Base

  extend ActsAsFollower::FollowerLib
  extend ActsAsFollower::FollowScopes

  # NOTE: Follows belong to the "followable" and "follower" interface
  belongs_to :followable, polymorphic: true
  belongs_to :follower,   polymorphic: true

  def block!
    self.update_attribute(:blocked, true)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_follower1-1.0.9 lib/generators/templates/model.rb