aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/i18n_railtie.rb
Commit message (Collapse)AuthorAgeFilesLines
* Describe how to silence the deprecation warning about empty I18n fallbacksMarc Schütz2019-01-251-1/+2
|
* Fix typo in i18n_railtie.rbOlivier2018-09-061-1/+1
|
* update I18n fallbacks configuration to be compatible with i18n 1.1.0Lachlan Sylvester2018-08-231-1/+13
|
* Remove unused `require "active_support/file_update_checker"`yuuji.yaginuma2018-05-301-1/+0
| | | | This is unnecessary since #22269.
* [Active Support] require_relative => requireAkira Matsuda2017-10-211-2/+2
| | | | This basically reverts 8da30ad6be34339124ba4cb4e36aea260dda12bc
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* [Active Support] require => require_relativeAkira Matsuda2017-07-011-2/+2
|
* Remove returning true in internal callbacksRyuta Kamizono2017-05-141-4/+0
| | | | | `display_deprecation_warning_for_false_terminator` was removed since 3a25cdc.
* Use `flat_map` rather than `map(&:...).flatten`Ryuta Kamizono2017-04-291-2/+2
|
* Avoid documenting private or external classesRobin Dupret2017-02-071-0/+2
| | | | | | | | | | | | | | | | There are a lot of monkey patches inside the code base but there's no need to document external constants so let's remove them from the documentation Also, since there are monkey patches for some test cases classes, there were sometimes both documented and sneaked under the wrong section in the sidebar. Finally, for future references, the `active_support/vendor` folder has been originally ignored in https://git.io/vDqfA but no longer exists. [ci skip]
* `protected` here doesn't protect anythingAkira Matsuda2016-12-191-2/+0
| | | | there aren't any instance method defined in this class
* Fix Remaining Case-In-Assignment Statement FormattingAlex Kitchens2016-09-061-8/+9
| | | | | | | | | Recently, the Rails team made an effort to keep the source code consistent, using Ruboco (bb1ecdcc677bf6e68e0252505509c089619b5b90 and below). Some of the case statements were missed. This changes the case statements' formatting and is consistent with changes in 810dff7c9fa9b2a38eb1560ce0378d760529ee6b and db63406cb007ab3756d2a96d2e0b5d4e777f8231.
* applies remaining conventions across the projectXavier Noria2016-08-061-5/+5
|
* Publish AS::Executor and AS::Reloader APIsMatthew Draper2016-03-021-2/+2
| | | | | | These should allow external code to run blocks of user code to do "work", at a similar unit size to a web request, without needing to get intimate with ActionDipatch.
* 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