Sha256: 0bbe342ac2d2f567b0a6f46debc962d40053749354774a46dc7d5d96bf882e58
Contents?: true
Size: 916 Bytes
Versions: 8
Compression:
Stored size: 916 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, mongo, setup, config, params, session, postman) @bll = bll @log = log @redis = redis @mongo = mongo @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
8 entries across 8 versions & 1 rubygems