Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add true to respond_to? for 1.9.3 compatibility

  • Loading branch information...
commit 48f873c3a852f8f1d689663eb5c5e20ad0bd83bb 1 parent 5ddfc14
Aaron Patterson tenderlove authored josevalim committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/i18n/backend/base.rb
2  lib/i18n/backend/base.rb
@@ -200,7 +200,7 @@ def interpolate_lambda?(object, string, key)
# for all other file extensions.
def load_file(filename)
type = File.extname(filename).tr('.', '').downcase
- raise, filename) unless respond_to?(:"load_#{type}")
+ raise, filename) unless respond_to?(:"load_#{type}", true)
data = send(:"load_#{type}", filename) # TODO raise a meaningful exception if this does not yield a Hash
data.each { |locale, d| store_translations(locale, d || {}) }
Please sign in to comment.
Something went wrong with that request. Please try again.