forked from thoughtbot/clearance
-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrading to Rails engine
croaky edited this page Sep 13, 2010
·
13 revisions
In your User model, change:
include Clearance::Modelto:
include Clearance::UserIn your ApplicationController, change:
include Clearance::App::Controllers::ApplicationControllerto:
include Clearance::AuthenticationIf you’ve added edit, update, show, index, or destroy actions to the controller, change:
class UsersController < ApplicationController include Clearance::UsersController endTo:
class UsersController < Clearance::UsersController endOtherwise, delete it. Same for SessionsController, although it is more likely that you can completely delete the SessionsController and app/views/sessions directory in your app.
In test/test_helper.rb, delete:
include Clearance::TestHelperIn test/unit/user_test.rb, delete:
include Clearance::UserTestIn test/functional/sessions_controller_test.rb, delete:
include Clearance::SessionsControllerTestIn test/functional/users_controller_test.rb, delete:
include Clearance::UsersControllerTest