Sha256: 6a17464d408f434f5e46131c5aee3a40c6c393e3efbf7d7eee36de0231e66ab6
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
# frozen_string_literal: true module CurrentSession # # configuration dsl # module Dsl extend ActiveSupport::Concern class_methods do def session_methods=(session_method) @session_methods = CurrentSession::SessionMethod.new_class(session_method) end def session_methods(&block) if block @session_methods = CurrentSession::SessionMethod.new_class(Module.new(&block)) else @session_methods end end def auth_methods=(auth_method) @auth_methods = CurrentSession::AuthMethod.new_class(auth_method) end def auth_methods(&block) if block @auth_methods = CurrentSession::AuthMethod.new_class(Module.new(&block)) else @auth_methods end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
current_session-0.1.8 | lib/current_session/dsl.rb |
current_session-0.1.7 | lib/current_session/dsl.rb |