Skip to content

Commit

Permalink
Do not eager load i18n message backend
Browse files Browse the repository at this point in the history
This backend has a dependency on the i18n library which may not be
available in all environments.
  • Loading branch information
adam12 committed Apr 1, 2024
1 parent 529a2fb commit 21f1763
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dry/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def self.loader
"#{root}/dry/schema/{constants,errors,version,extensions}.rb",
"#{root}/dry/schema/extensions"
)
loader.do_not_eager_load("#{root}/dry/schema/messages/i18n.rb")
loader.inflector.inflect("dsl" => "DSL")
end
end
Expand Down

0 comments on commit 21f1763

Please sign in to comment.