Permalink
Browse files

Remove `unloadable` from controllers

They are causing circular dependencies in Rails 4 + Ruby 2:

#276
  • Loading branch information...
1 parent eb18df8 commit 6c22c6abec9da4f853cf2a18781848cdc18ddbfc @croaky croaky committed Mar 18, 2013
@@ -1,8 +1,6 @@
require 'active_support/deprecation'
class Clearance::PasswordsController < ApplicationController
- unloadable
-
skip_before_filter :authorize, :only => [:create, :edit, :new, :update]
before_filter :forbid_missing_token, :only => [:edit, :update]
before_filter :forbid_non_existent_user, :only => [:edit, :update]
@@ -1,6 +1,4 @@
class Clearance::SessionsController < ApplicationController
- unloadable
-
skip_before_filter :authorize, :only => [:create, :new, :destroy]
protect_from_forgery :except => :create
@@ -1,6 +1,4 @@
class Clearance::UsersController < ApplicationController
- unloadable
-
skip_before_filter :authorize, :only => [:create, :new]
before_filter :redirect_to_root, :only => [:create, :new], :if => :signed_in?

0 comments on commit 6c22c6a

Please sign in to comment.