Permalink
Browse files

add true to respond_to? for 1.9.3 compatibility

  • Loading branch information...
1 parent 5ddfc14 commit 48f873c3a852f8f1d689663eb5c5e20ad0bd83bb @tenderlove tenderlove committed with josevalim Jul 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/i18n/backend/base.rb
View
@@ -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 UnknownFileType.new(type, filename) unless respond_to?(:"load_#{type}")
+ raise UnknownFileType.new(type, 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 || {}) }
end

0 comments on commit 48f873c

Please sign in to comment.