Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplify to only one condition

Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
  • Loading branch information...
commit 6cfd1c7726e7687de41f692968f8eb82ae998c43 1 parent 190101e
@dmathieu dmathieu authored pixeltrix committed
Showing with 1 addition and 5 deletions.
  1. +1 −5 actionpack/lib/action_view/helpers/translation_helper.rb
View
6 actionpack/lib/action_view/helpers/translation_helper.rb
@@ -5,11 +5,7 @@ module I18n
class ExceptionHandler
include Module.new {
def call(exception, locale, key, options)
- if exception.is_a?(MissingTranslationData)
- options[:rescue_format] == :html ? super.html_safe : super
- else
- super
- end
+ exception.is_a?(MissingTranslationData) && options[:rescue_format] == :html ? super.html_safe : super
end
}
end
Please sign in to comment.
Something went wrong with that request. Please try again.