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