mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 23:11:47 +01:00
Use correct idiom for undefind module
This commit is contained in:
parent
07dd842525
commit
f33b747422
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ class LoginController < ApplicationController
|
|||
# This will allow the user to view the index page without authentication
|
||||
# but will process CAS authentication data if the user already
|
||||
# has an SSO session open.
|
||||
if (CASClient rescue nil)
|
||||
if defined? CASClient
|
||||
# Only require sub-library if gem is installed and loaded
|
||||
require 'casclient/frameworks/rails/filter'
|
||||
before_filter CASClient::Frameworks::Rails::GatewayFilter, :only => :login_cas
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue