Skip to content

Commit

Permalink
Remove unloadable from controllers
Browse files Browse the repository at this point in the history
They are causing circular dependencies in Rails 4 + Ruby 2:

thoughtbot#276
  • Loading branch information
Dan Croak committed Mar 26, 2013
1 parent eb18df8 commit 6c22c6a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/controllers/clearance/passwords_controller.rb
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/clearance/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class Clearance::SessionsController < ApplicationController
unloadable

skip_before_filter :authorize, :only => [:create, :new, :destroy]
protect_from_forgery :except => :create

Expand Down
2 changes: 0 additions & 2 deletions app/controllers/clearance/users_controller.rb
Original file line number Diff line number Diff line change
@@ -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?

Expand Down

0 comments on commit 6c22c6a

Please sign in to comment.