app/controllers/clearance/users_controller.rb in clearance-0.14.0 vs app/controllers/clearance/users_controller.rb in clearance-0.15.0
- old
+ new
@@ -3,15 +3,15 @@
skip_before_filter :authorize, :only => [:new, :create]
before_filter :redirect_to_root, :only => [:new, :create], :if => :signed_in?
def new
- @user = ::User.new(params[:user])
+ @user = Clearance.configuration.user_model.new(params[:user])
render :template => 'users/new'
end
def create
- @user = ::User.new(params[:user])
+ @user = Clearance.configuration.user_model.new(params[:user])
if @user.save
sign_in(@user)
redirect_back_or(url_after_create)
else
flash_failure_after_create