Remove lib folder from autoload path

- Load extensions explicitly
This commit is contained in:
Artur Beljajev 2018-06-05 17:26:14 +03:00
parent 9ea5b54f5c
commit 30ac973f96
12 changed files with 25 additions and 25 deletions

11
lib/gem_ext/i18n.rb Normal file
View file

@ -0,0 +1,11 @@
# Don't raise error when nil
# http://stackoverflow.com/questions/9467034/rails-i18n-how-to-handle-case-of-a-nil-date-being-passed-ie-lnil
module I18n
class << self
alias_method :original_localize, :localize
def localize(object, options = {})
object.present? ? original_localize(object, options) : ''
end
end
end