Skip to content

Commit

Permalink
Fix compatibility with ActiveSupport 7+
Browse files Browse the repository at this point in the history
Fixes #400
  • Loading branch information
glebm committed Dec 17, 2021
1 parent 0885805 commit 4799bb0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/i18n/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,18 @@ module Data
end
end

# Per https://github.com/rails/rails/commit/0181f0edd57a2149278bd59c3519233ca1e0a413#commitcomment-60940992
# 'active_support' must be required first even if we only use parts of it.
require 'active_support'

require 'active_support/inflector'
require 'active_support/core_ext/hash'
require 'active_support/core_ext/array/access'
require 'active_support/core_ext/array/extract_options'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/object/blank'
begin
# activesupport >= 3
require 'active_support/core_ext/object/try'
rescue LoadError => _e
# activesupport ~> 2.3.2
require 'active_support/core_ext/try'
end
require 'active_support/core_ext/object/try'

require 'rainbow'
require 'erubi'

Expand Down

0 comments on commit 4799bb0

Please sign in to comment.