12 lines
292 B
Ruby
12 lines
292 B
Ruby
class ApplicationController < ActionController::Base
|
|
rescue_from DeviseLdapAuthenticatable::LdapException do |exception|
|
|
render :text => exception, :status => 500
|
|
end
|
|
|
|
def require_user_signed_in
|
|
unless user_signed_in?
|
|
redirect_to welcome_path and return
|
|
end
|
|
end
|
|
end
|