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 authored and flash-gordon committed Apr 2, 2024
1 parent 529a2fb commit 85a9e0b
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 85a9e0b

Please sign in to comment.