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

Version Path
muck-contents-3.1.7 lib/muck-contents/models/content_permission.rb
muck-contents-3.1.6 lib/muck-contents/models/content_permission.rb
muck-contents-3.1.5 lib/muck-contents/models/content_permission.rb
muck-contents-3.1.4 lib/muck-contents/models/content_permission.rb
muck-contents-3.1.3 lib/muck-contents/models/content_permission.rb
muck-contents-3.1.2 lib/muck-contents/models/content_permission.rb
muck-contents-3.1.1 lib/muck-contents/models/content_permission.rb
muck-contents-3.1.0 lib/muck-contents/models/content_permission.rb
muck-contents-3.0.2 lib/muck-contents/models/content_permission.rb
muck-contents-3.0.1 lib/muck-contents/models/content_permission.rb
muck-contents-3.0.0 lib/muck_contents/models/content_permission.rb