lib/dry/swagger.rb in dry-swagger-0.5.2 vs lib/dry/swagger.rb in dry-swagger-0.6.0
- old
+ new
@@ -5,10 +5,12 @@
require 'dry/swagger/errors/missing_hash_schema_error'
require 'dry/swagger/errors/missing_type_error'
require 'dry/swagger/config/configuration'
require 'dry/swagger/config/contract_configuration'
require 'dry/swagger/config/struct_configuration'
+require 'i18n'
module Dry
module Swagger
+ ::I18n.load_path << Dir[File.expand_path("config/locales") + "/*.yml"]
end
end