Skip to content

Commit

Permalink
simplify to only one condition
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
  • Loading branch information
dmathieu authored and pixeltrix committed Jun 15, 2011
1 parent 190101e commit 6cfd1c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions actionpack/lib/action_view/helpers/translation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cfd1c7

Please sign in to comment.