Skip to content

Commit

Permalink
Remove unloadable if Rails version >= 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Barban committed Jul 26, 2013
1 parent d93dbdf commit 8ebcb57
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/controllers/devise/cas_sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
class Devise::CasSessionsController < Devise::SessionsController
class Devise::CasSessionsController < Devise::SessionsController
include DeviseCasAuthenticatable::SingleSignOut::DestroySession
unloadable

unless Rails.version =~/^4/
unloadable
end

skip_before_filter :verify_authenticity_token, :only => [:single_sign_out]

Expand Down

0 comments on commit 8ebcb57

Please sign in to comment.