Permalink
Browse files

Do not eagerly load all .yml files

  • Loading branch information...
leo-souza committed Oct 26, 2015
1 parent 98cccb5 commit 9d8a3eb70c626545ab31fd1e3f484749c5eec08f
Showing with 4 additions and 4 deletions.
  1. +0 −2 .travis.yml
  2. +4 −2 config/application.rb
View
@@ -5,8 +5,6 @@ before_script:
- psql -c 'create database weby_test;' -U postgres
- mv config/travis_database.yml config/database.yml
- mv config/secrets.yml.example config/secrets.yml
# When you use 'bundle install', check line above:
- rm -rf vendor/bundle/ruby/2.1.7/gems/i18n-0.7.0/test
- RAILS_ENV=test bundle exec rake --trace db:schema:load
script: bin/rspec spec
notifications:
View
@@ -18,13 +18,15 @@ class Application < Rails::Application
config.autoload_paths += Dir["#{config.root}/vendor/engines/*/lib/weby/components/**/*"]
# Activate observers that should always be running.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
config.time_zone = 'Brasilia'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
config.i18n.load_path += Dir["#{config.root}/**/locales/**/*.yml"]
# config.i18n.load_path += Dir["#{config.root}/**/locales/**/*.yml"]
config.i18n.load_path += Dir["#{config.root}/**/config/locales/**/*.yml"]
config.i18n.load_path += Dir["#{config.root}/**/lib/weby/**/locales/**/*.yml"]
config.i18n.default_locale = 'pt-BR'
I18n.config.enforce_available_locales = false

0 comments on commit 9d8a3eb

Please sign in to comment.