Sha256: 88f299b3ee93bba8daa01a4ff19db368bc15d96f93d9970467d74eb69c90f7e7
Contents?: true
Size: 576 Bytes
Versions: 31
Compression:
Stored size: 576 Bytes
Contents
module RubyPitaya class HandlerBase class_attribute :non_authenticated_routes, default: [] attr_accessor :bll, :redis, :config, :params, :session, :postman def initialize @bll = nil @redis = nil @config = nil @params = nil @session = nil @postman = nil 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
31 entries across 31 versions & 1 rubygems