Sha256: cd1a8aa3a02e44ae20693509aa827b85810f3bf13e221f98466df64ec51f3373

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

module CanTango::Api::Ability
  module Dsl
    sweetload :Relationship
    
    include Relationship

    # creates a scope that enforces either using the user or user_account 
    # for determining relationship matches on the models
    def scope name, &block
      yield Scope.new name, self, &block
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-api-0.1.3 lib/cantango/api/ability/dsl.rb