Update rubocop to version 0.22.0
This commit is contained in:
parent
2d05491bf5
commit
8572f113e2
|
@ -145,7 +145,7 @@ GEM
|
||||||
remotipart (1.2.1)
|
remotipart (1.2.1)
|
||||||
rest-client (1.6.7)
|
rest-client (1.6.7)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
rubocop (0.21.0)
|
rubocop (0.22.0)
|
||||||
json (>= 1.7.7, < 2)
|
json (>= 1.7.7, < 2)
|
||||||
parser (~> 2.1.9)
|
parser (~> 2.1.9)
|
||||||
powerpack (~> 0.0.6)
|
powerpack (~> 0.0.6)
|
||||||
|
|
|
@ -8,12 +8,10 @@ class ApplicationController < ActionController::Base
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def set_flash_from_params
|
def set_flash_from_params
|
||||||
if params[:flash]
|
params.fetch(:flash, []).each do |key, message|
|
||||||
params[:flash].each do |key, message|
|
|
||||||
flash.now[key.to_sym] = message
|
flash.now[key.to_sym] = message
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def set_locale
|
def set_locale
|
||||||
available_languages = Dir.glob(Rails.root + 'config/locales/??.yml').collect do |file|
|
available_languages = Dir.glob(Rails.root + 'config/locales/??.yml').collect do |file|
|
||||||
|
|
Loading…
Reference in New Issue