Commit a60f35d4 by Quang Vinh Nguyen

fix rubocop entries controller

parent 13964180
......@@ -24,7 +24,7 @@ class EntriesController < ApplicationController
# POST /entries.json
def create
@entry = Entry.new(entry_params)
render :new and return unless @entry.valid?
render(:new) && return unless @entry.valid?
@job = Job.find(params[:job_id])
......@@ -37,7 +37,7 @@ class EntriesController < ApplicationController
address: params[:entry][:entry_address],
password: random_password,
password_confirmation: random_password)
render :new and return unless @user.valid?
render(:new) && return unless @user.valid?
@user.skip_confirmation!
@user.save
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment