Sha256: e30ca707f86edd6418ec13fd87c5d8b01c9bad371e1099e1efca94b72f9144e0

Contents?: true

Size: 242 Bytes

Versions: 3

Compression:

Stored size: 242 Bytes

Contents

# Helpers methods are made available in all controllers by the code in engine.rb.
module Balrog::Helpers
  def authenticate_with_balrog!
    unless session[:balrog] == 'authenticated'
      render 'balrog/gate', layout: nil
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
balrog-1.0.0 lib/balrog/helpers.rb
balrog-0.2.0 lib/balrog/helpers.rb
balrog-0.1.0 lib/balrog/helpers.rb