Module: OmniauthableController
- Includes:
- OmniauthableHelper
- Defined in:
- lib/recsolu_login_client/omniauthable_controller.rb
Instance Method Summary collapse
- #login_required ⇒ Object (also: #authenticate_user!)
Methods included from OmniauthableHelper
#current_user, #user_signed_in?
Instance Method Details
#login_required ⇒ Object Also known as: authenticate_user!
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/recsolu_login_client/omniauthable_controller.rb', line 6 def login_required if !current_user respond_to do |format| format.html { redirect_to '/auth/recsoluid' } format.json { render :json => { 'error' => 'Access Denied' }.to_json } end end end |