Fix rubocop offenses

parent a56ada0a
class Dashboard::TasksController < Dashboard::ApplicationController
def index
@tasks = case params[:state]
when 'done'
current_user.tasks.done
else
current_user.tasks.pending
end
when 'done'
current_user.tasks.done
else
current_user.tasks.pending
end
@tasks = @tasks.page(params[:page]).per(PER_PAGE)
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