Sha256: 0482ca8ae5cb3329bfae00e720c41e5b06dd9efb6d0b2f65634ca5f3d40daf06
Contents?: true
Size: 888 Bytes
Versions: 5
Compression:
Stored size: 888 Bytes
Contents
module RubyPitaya class HandlerBase class_attribute :non_authenticated_routes, default: [] attr_accessor :bll, :log, :redis, :setup, :config, :params, :session, :postman def initialize @bll = nil @log = nil @redis = nil @setup = nil @config = nil @params = nil @session = nil @postman = nil end def set_attributes(bll, log, redis, setup, config, params, session, postman) @bll = bll @log = log @redis = redis @setup = setup @config = config @params = params @session = session @postman = postman end def self.non_authenticated_actions(*action_names) self.non_authenticated_routes = action_names.map(&:to_s) end def self.authenticated_action_name?(action_name) !self.non_authenticated_routes.include?(action_name.to_s) end end end
Version data entries
5 entries across 5 versions & 1 rubygems