app/controllers/clearance/users_controller.rb in clearance-1.2.0 vs app/controllers/clearance/users_controller.rb in clearance-1.2.1
- old
+ new
@@ -1,21 +1,21 @@
class Clearance::UsersController < ApplicationController
- skip_before_filter :authorize, :only => [:create, :new]
- before_filter :avoid_sign_in, :only => [:create, :new], :if => :signed_in?
+ skip_before_filter :authorize, only: [:create, :new]
+ before_filter :avoid_sign_in, only: [:create, :new], if: :signed_in?
def new
@user = user_from_params
- render :template => 'users/new'
+ render template: 'users/new'
end
def create
@user = user_from_params
if @user.save
sign_in @user
redirect_back_or url_after_create
else
- render :template => 'users/new'
+ render template: 'users/new'
end
end
private