Skip to content

Commit

Permalink
Comply with Zeitwerk loader conventions (#81)
Browse files Browse the repository at this point in the history
This adds Zeitwerk support like refinery/refinerycms#3465

Co-authored-by: Brice Sanchez <[email protected]>
  • Loading branch information
parndt and bricesanchez authored Mar 11, 2022
1 parent 672125b commit f44b7fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/refinery/i18n.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Encoding: UTF-8 <-- required, please leave this in.
require 'mobility'
require 'refinerycms-core'
require 'routing-filter'
require 'rails-i18n'
require 'refinery/i18n/engine'

module Refinery
autoload :I18nGenerator, 'generators/refinery/i18n_generator'
Expand Down Expand Up @@ -61,7 +61,6 @@ def has_locale?(locale)
end
end

require 'refinery/i18n/engine'
require 'refinery/i18n/configuration'
end
end
1 change: 0 additions & 1 deletion lib/refinerycms-i18n.rb

This file was deleted.

2 changes: 2 additions & 0 deletions lib/refinerycms/i18n.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'refinerycms/core'
require 'refinery/i18n'

0 comments on commit f44b7fb

Please sign in to comment.