Sha256: cbdddc12788ec8705ad3804f37192d02461888e7d66dcb759165b3a704c29f74

Contents?: true

Size: 385 Bytes

Versions: 6

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

class AuthorizyCop < Authorizy::BaseCop
  def admin__dummy
    params[:admin] == 'true'
  end

  def dummy
    params[:access] == 'true'
  end

  def fetch_action
    action
  end

  def fetch_controller
    controller
  end

  def fetch_current_user
    current_user
  end

  def fetch_params
    params
  end

  def fetch_session
    session
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
authorizy-0.4.1 spec/support/models/authorizy_cop.rb
authorizy-0.4.0 spec/support/models/authorizy_cop.rb
authorizy-0.3.0 spec/support/models/authorizy_cop.rb
authorizy-0.2.2 spec/support/models/authorizy_cop.rb
authorizy-0.2.1 spec/support/models/authorizy_cop.rb
authorizy-0.2.0 spec/support/models/authorizy_cop.rb