Skip to content

Commit

Permalink
Fix undefined warning
Browse files Browse the repository at this point in the history
  • Loading branch information
j15e committed May 28, 2021
1 parent 136dc32 commit 2a2f555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hstore_translate/translates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def method_missing_with_translates(method_name, *args)
protected

def hstore_translate_fallback_locales(locale)
return if @enabled_fallback == false || !I18n.respond_to?(:fallbacks)
return if (defined?(@enabled_fallback) && @enabled_fallback == false) || !I18n.respond_to?(:fallbacks)
I18n.fallbacks[locale]
end

Expand Down

0 comments on commit 2a2f555

Please sign in to comment.