aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/i18n_railtie.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use the file watcher defined by the app configDharam Gollapudi2015-11-111-1/+1
| | | This can make use of the FileEventedUpdateChecker, if available.
* Reload I18n locales in developmentKir Shatrov2015-08-101-2/+17
|
* Use public Module#include, in favor of https://bugs.ruby-lang.org/issues/8846robertomiranda2015-01-311-1/+1
| | | | ref: https://github.com/rails/rails/pull/18763#issuecomment-72349769
* Deprecate `false` as the way to halt AS callbacksclaudiob2015-01-021-1/+7
| | | | | | | | | | | | | | After this commit, returning `false` in a callback will display a deprecation warning to make developers aware of the fact that they need to explicitly `throw(:abort)` if their intention is to halt a callback chain. This commit also patches two internal uses of AS::Callbacks (inside ActiveRecord and ActionDispatch) which sometimes return `false` but whose returned value is not meaningful for the purpose of execution. In both cases, the returned value is set to `true`, which does not affect the execution of the callbacks but prevents unrequested deprecation warnings from showing up.
* Do not set enforce_available_locales to i18n 0.7Rafael Mendonça França2014-07-231-3/+1
| | | | | | Now the default is always true. Users still can set it using config.i18n.enforce_available_locales.
* Require active_support at the railtiesRafael Mendonça França2014-05-271-0/+1
| | | | Railties need to be used without having to require any dependecy first.
* Remove `require 'active_support'` from individual modulesdeeeki2014-05-271-1/+0
| | | | | Let users require `active_support` before loading any ActiveSupport modules http://guides.rubyonrails.org/active_support_core_extensions.html
* Fix typo [ci skip]Carlos Antonio da Silva2013-12-211-1/+1
|
* Default I18n.enforce_available_locales to trueCarlos Antonio da Silva2013-12-171-4/+10
| | | | | | | | | | | | We will default this option to true from now on to ensure users properly handle their list of available locales whenever necessary. This option was added as a security measure and thus Rails will follow it defaulting to secure option. Also improve the handling of I18n config options in its railtie, taking the new enforce_available_locales option into account, by setting it as the last one in the process. This ensures no other configuration will trigger a deprecation warning due to that setting.
* set `i18n.enforce_available_locales` before `i18n.default_locale`.Yves Senn2013-12-051-0/+5
|
* update AS docs [ci skip]Francesco Rodriguez2012-09-171-2/+2
|
* Stop relying on mutable structures in the FileUpdateCheckerJosé Valim2012-06-121-20/+3
|
* FileUpdateChecker should be able to handle deleted files.José Valim2011-12-131-1/+1
|
* Clean up FileUpdateChecker API.José Valim2011-12-131-2/+6
|
* Speed up development by only reloading classes if dependencies files changed.José Valim2011-12-121-1/+2
| | | | | | | | This can be turned off by setting `config.reload_classes_only_on_change` to false. Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading. Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
* stop circular require warningsAaron Patterson2011-08-241-1/+0
|
* dealing with some -w warnings on startupAaron Patterson2011-08-241-0/+2
|
* Some style changessuchasurge2011-03-061-1/+1
|
* Ensure I18n setup is only executed once if triggered on eager loading [#6353 ↵Saimon Moore2011-02-011-12/+20
| | | | | | state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Additionally trigger i18n configuration setup before any eager loading ↵Saimon Moore2011-02-011-4/+11
| | | | | | | | | [#6353 state:resolved] This handles the case where config.cache_classes is true and classes are loaded before the I18n load path has had a chance to be populated. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepareJohn Firebaugh2010-12-201-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Add the possibility to have several behaviors in AS::Deprecation.José Valim2010-07-011-0/+1
|
* I18n.reload! is only called if any of the locale files actually changed.José Valim2010-06-201-0/+80