Module: Balrog::Helpers

Includes:
Guard
Defined in:
lib/balrog/helpers.rb

Overview

Helpers methods are made available in all controllers by the code in engine.rb.

Instance Method Summary collapse

Methods included from Guard

#authenticated?

Instance Method Details

#authenticate_with_balrog!Object



7
8
9
10
11
# File 'lib/balrog/helpers.rb', line 7

def authenticate_with_balrog!
  unless authenticated?(session[:balrog])
    render 'balrog/gate', layout: 'balrog'
  end
end