Sha256: a9f3c2c139702f3ff98228b05c01bb3a4bc0661fd8c3d4f779cf359c5e23ff8e

Contents?: true

Size: 196 Bytes

Versions: 2

Compression:

Stored size: 196 Bytes

Contents

class Follow < SharpSocial::Models::Follow

  belongs_to :followable, polymorphic: true
  belongs_to :follower, polymorphic: true

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sharp_social-0.1.1 spec/dummy/app/models/follow.rb
sharp_social-0.0.1 spec/dummy/app/models/follow.rb