module ActsAsAble::Viewer::ClassMethods

Public Instance Methods

acts_as_viewer() click to toggle source

Those call this method has the ability to be unlike by others

# File lib/acts_as_able/viewer.rb, line 11
def acts_as_viewer
  include ActsAsAble::AbleExt
  has_many :views, as: :viewer, dependent: :destroy, class_name: 'View' # 有很多不喜欢的 Object
end