Module: Nyauth::Test::ControllerMacros

Includes:
SessionConcern
Defined in:
lib/nyauth/test/controller_macros.rb

Class Method Summary collapse

Methods included from SessionConcern

#current_authenticated, #require_authentication!, #sign_in, #sign_out, #signed_in?, #store_signed_in_status

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/nyauth/test/controller_macros.rb', line 6

def self.included(base)
  base.instance_eval do
    before do
      @request.env['nyauth'] = Nyauth::Nyan.new(@request.env)
    end
  end
end