Fix rubocop offenses

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