lib/trust/authorization.rb
# raised if attempting to do resource related operations and resource is not passed on to the Authorization object
raised if attempting to do resource related operations and resource is not passed on to the Authorization object
raised if attempting to do resource related operations and resource is not passed on to the Authorization object
def authorizing_class 
      auth = nil
      k = klass
      while k != Object
        break if k == ::ActiveRecord::Base
        begin
          auth = "::Permissions::#{k}".constantize
          break
        rescue
        end
        k = k.superclass
      end
      auth || ::Permissions::Default
    end
def authorizing_class auth = nil k = klass while k != Object break if k == :: ActiveRecord :: Base begin auth = "::Permissions::#{k}" . constantize break rescue end k = k . superclass end auth || :: Permissions :: Default end
raised if attempting to do resource related operations and resource is not passed on to the Authorization object
raised if attempting to do resource related operations and resource is not passed on to the Authorization object
#:nodoc: