Sha256: 181a13ac605b5947591e677a7e4f428985fb92290588d54b0e02e6e8e872ed31

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module Authorizy
  class BaseCop
    def initialize(current_user, params, session, controller, action)
      @action       = action
      @controller   = controller
      @current_user = current_user
      @params       = params
      @session      = session
    end

    def access?
      false
    end

    protected

    attr_reader :action, :controller, :current_user, :params, :session
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authorizy-0.1.0 lib/authorizy/base_cop.rb