chore(rubocop): giganto rubocop commit.

muahahahah
This commit is contained in:
Joseph Mastey
2017-12-05 18:46:21 -06:00
parent 284cd8811c
commit 9902345291
120 changed files with 743 additions and 635 deletions
+4 -3
View File
@@ -1,3 +1,4 @@
# frozen_string_literal: true
class BenefitFormsController < ApplicationController
def index
@@ -8,9 +9,9 @@ class BenefitFormsController < ApplicationController
begin
path = params[:name]
file = params[:type].constantize.new(path)
send_file file, :disposition => 'attachment'
send_file file, disposition: "attachment"
rescue
redirect_to user_benefit_forms_path(:user_id => current_user.user_id)
redirect_to user_benefit_forms_path(user_id: current_user.user_id)
end
end
@@ -22,7 +23,7 @@ class BenefitFormsController < ApplicationController
else
flash[:error] = "Something went wrong"
end
redirect_to user_benefit_forms_path(:user_id => current_user.user_id)
redirect_to user_benefit_forms_path(user_id: current_user.user_id)
end
end