Skip to content

Commit

Permalink
Update rubocop to version 0.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed May 22, 2014
1 parent 2d05491 commit 8572f11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ GEM
remotipart (1.2.1)
rest-client (1.6.7)
mime-types (>= 1.16)
rubocop (0.21.0)
rubocop (0.22.0)
json (>= 1.7.7, < 2)
parser (~> 2.1.9)
powerpack (~> 0.0.6)
Expand Down
6 changes: 2 additions & 4 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ class ApplicationController < ActionController::Base
protected

def set_flash_from_params
if params[:flash]
params[:flash].each do |key, message|
flash.now[key.to_sym] = message
end
params.fetch(:flash, []).each do |key, message|
flash.now[key.to_sym] = message
end
end

Expand Down

0 comments on commit 8572f11

Please sign in to comment.