aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Ensure we supply Kernel#y for 1.9 tooMatthew Draper2014-04-041-0/+19
| | | | | | | | In 1.9, it doesn't live in its own file, so we'll have to define it ourselves. Check RUBY_VERSION, instead of rescuing the require, because we want this to break if `psych/y` moves in a future Ruby release.
* Merge pull request #13945 from rails/json_cookie_serializer_improvementsGuillermo Iguaran2014-02-131-1/+1
|\ | | | | Cookies serializer improvements
| * Renamed session_serializer option to cookies_serializerGodfrey Chan2014-02-111-1/+1
| |
* | do not crash when `config/secrets.yml` is blank.Yves Senn2014-02-121-1/+2
|/
* Allow session serializer key in config.session_storeLukasz Sarnacki2014-01-291-1/+2
| | | | | | | | | | | | | MessageEncryptor has :serializer option, where any serializer object can be passed. This commit make it possible to set this serializer from configuration level. There are predefined serializers (:marshal_serializer, :json_serialzier) and custom serializer can be passed as String, Symbol (camelized and constantized in ActionDispatch::Session namepspace) or serializer object. Default :json_serializer was also added to generators to provide secure defalt.
* Better missing `secret_key_base` error messageschneems2013-12-241-1/+1
| | | | | | | | | | | | | | Previously the error was: ``` RuntimeError: You must set secret_key_base in your app's config ``` Will now be: ``` RuntimeError: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml` ```
* Make possible to use symbol as the verifier nameRafael Mendonça França2013-12-191-1/+1
|
* Change the message verifier argument to verifier_nameRafael Mendonça França2013-12-191-6/+6
|
* Rename tokens.yml to secrets.ymlGuillermo Iguaran2013-12-121-1/+1
|
* Load secret_key_base from tokens.yml, fallback to config.secret_key_baseGuillermo Iguaran2013-12-121-6/+28
|
* Make salt argument required for message verifierRafael Mendonça França2013-12-041-6/+6
|
* Fix typosRafael Mendonça França2013-12-041-2/+2
|
* No need to configure saltsRafael Mendonça França2013-12-041-8/+4
|
* Make possibile to get different message verifiersRafael Mendonça França2013-12-041-9/+18
|
* Add missing requireRafael Mendonça França2013-12-041-0/+1
|
* Rename verifier to message_verifierRafael Mendonça França2013-12-041-4/+4
|
* Add documentation and CHANGELOG entry to Application#verifierRafael Mendonça França2013-12-041-0/+9
|
* Add application verifierRafael Mendonça França2013-12-041-0/+12
| | | | | | | | It is an application global verifier that can be used to generate and verify signed messages. See the documentation of ActiveSupport::MessageVerifier for more information.
* clean up some warnings on trunk rubyAaron Patterson2013-10-311-1/+1
|
* This is not needed anymore, before_initialize block can access configSantiago Pastorino2013-07-141-1/+0
|
* #11381: Ignore config.eager_load=true for rakePaul Nikitochkin2013-07-101-1/+2
| | | | Closes #11381
* Allowing multiple rails applications in the same ruby instance.wangjohn2013-06-301-7/+78
| | | | | This change provides the ability to create a new application with a configuration which can be specified.
* Removing a repetitive comment and removing a deprecation warning.wangjohn2013-06-171-24/+7
| | | | | | | The comment on the +env_config+ method is repetitive, likely to get outdated, and provides no useful information which cannot be gleamed from the code. I'm therefore removing it. I'm also refactoring the check for the presence of a secret_token in the configuration.
* Revert "Merge pull request #10961 from wangjohn/changing_rails_env_config"Santiago Pastorino2013-06-171-7/+24
| | | | | | This reverts commit 7098d6c9ab28931acc9562a00037567609f9e529, reversing changes made to 9ec2e2ee91568af24e09760a6de2890b89c33f56. This make some tests fail /cc @wangjohn
* Merge pull request #10968 from wangjohn/refactoring_rails_application_classSantiago Pastorino2013-06-171-95/+8
|\ | | | | Creating a class to build the default middleware stack.
| * Creating a class to build the default middleware stack.wangjohn2013-06-161-95/+8
| | | | | | | | | | | | | | A lot of logic for building the default middleware stack is currently kept in Application class, but this can be encapsulated and made more modular by being moved to its own class. Also refactored a couple of the helper methods.
* | Removing a repetitive comment and refactoring the Application class inwangjohn2013-06-161-24/+7
|/ | | | | | | | | Railties. The comment on the +env_config+ method is repetitive, likely to get outdated, and provides no useful information which cannot be gleamed from the code. I'm therefore removing it. I'm also refactoring the check for the presence of a secret_token in the configuration.
* `initialize_on_precompile` is not used anymore.Terence Lee2013-06-131-3/+1
|
* Fix generating route from engine to other enginePiotr Sarnacki2013-05-031-0/+1
| | | | | | | | | | | | A regression was introduced in 5b3bb6, generating route from within an engine to an another engine resulted in prefixing a path with the SCRIPT_NAME value. The regression was caused by the fact that SCRIPT_NAME should be appended only if it's the SCRIPT_NAME for the application, not if it's SCRIPT_NAME from the current engine. closes #10409
* Remove comments about removing LegacyKeyGenerator in 4.1Trevor Turk2013-04-031-1/+0
|
* Rename DummyKeyGenerator -> LegacyKeyGeneratorTrevor Turk2013-04-021-2/+2
|
* Allow transparent upgrading of legacy signed cookies to encrypted cookies; ↵Trevor Turk2013-03-281-6/+7
| | | | Automatically configure cookie-based sessions to use the best cookie jar given the app's config
* Introduce UpgradeLegacySignedCookieJar to transparently upgrade existing ↵Trevor Turk2013-03-241-0/+1
| | | | signed cookies generated by Rails 3 to avoid invalidating them when upgrading to Rails 4
* Initialize @app_env_config now that the var name has changedCarlos Antonio da Silva2013-03-191-1/+1
| | | | Check 862389c9537dbb6f65fd26c4325e07607ed437b5 for more background.
* Use @app_env_config instead of @env_configJosé Valim2013-03-181-1/+1
| | | | Check pull request #9789 for more information.
* Renumbering the comments in the application boot process.wangjohn2013-03-091-4/+4
|
* Bring config.allow_concurrency backJosé Valim2013-03-031-18/+40
| | | | | Since the Rack::Lock still exists in development, let's provide a way to disable it explicitly.
* Remove BestStandardsSupport middlewareGuillermo Iguaran2013-01-291-4/+0
|
* Adding Back Rails::Engine::Railties#enginesTim Raymond2013-01-031-5/+1
| | | | | Removing it breaks functionality with gems such as Thinking Sphinx. This restores it with a deprecation warning. Closes #8551
* Improve secret_token deprecation messageSantiago Pastorino2012-12-301-3/+4
|
* remove duplication from Rails::Application docsHrvoje Šimić2012-12-241-2/+0
|
* Move background jobs to the 'jobs' branch until fully baked. Not shipping ↵Jeremy Kemper2012-12-211-8/+1
| | | | with Rails 4.0.
* Adding filter capability to ActionController logsFabrizio Regini2012-12-051-0/+2
|
* Add UpgradeSignatureToEncryptionCookieStoreSantiago Pastorino2012-11-161-0/+2
| | | | | | This allows easy upgrading from the old signed Cookie Store <= 3.2 or the deprecated one in 4.0 (the ones that doesn't use key derivation) to the new one that signs using key derivation
* Rename secret_token_key to secret_key_baseSantiago Pastorino2012-11-031-6/+6
|
* Cache generated keys per KeyGenerator instance using salt + key_sizeSantiago Pastorino2012-11-031-5/+8
|
* Allow users to change the default salt if they want, shouldn't be necessarySantiago Pastorino2012-11-031-7/+15
|
* Use derived keys everywhere, http_authentication was missing itSantiago Pastorino2012-11-031-2/+3
|
* Warn config.derive_keys will be true by default in 4.1Santiago Pastorino2012-11-031-9/+17
|
* Sign cookies using key deriverSantiago Pastorino2012-11-031-1/+8
|