Sha256: b54a439ef51918af5fe060fd65b212adac08e0fc9a7d7a9c79304c42fc7c8bf1
Contents?: true
Size: 421 Bytes
Versions: 11
Compression:
Stored size: 421 Bytes
Contents
# include MuckContents::Models::MuckContentPermission module MuckContents module Models module MuckContentPermission extend ActiveSupport::Concern included do belongs_to :content belongs_to :user scope :by_user, lambda { |user| where('content_permissions.user_id = ?', user.id) } attr_protected :created_at, :updated_at end end end end
Version data entries
11 entries across 11 versions & 1 rubygems