aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix the Interlock middlewareMatthew Draper2015-07-091-5/+14
| | | | | We can't actually lean on Rack::Lock's implementation, so we'll just copy it instead. It's simple enough that that's not too troubling.
* Rely on the load interlock for non-caching reloads, tooMatthew Draper2015-07-094-24/+28
|
* Soften the lock requirements when eager_load is disabledMatthew Draper2015-07-097-47/+263
| | | | | We don't need to fully disable concurrent requests: just ensure that loads are performed in isolation.
* Merge pull request #20805 from yui-knk/fix/how_to_run_testYves Senn2015-07-081-1/+1
|\ | | | | [ci skip] Add `bundle exec` to Running a Single Test
| * [ci skip] Add `bundle exec` to Running a Single Testyui-knk2015-07-081-1/+1
|/
* Merge pull request #20803 from TheBlasfem/marking_serialization_classRafael Mendonça França2015-07-081-1/+1
|\ | | | | marking serialization class in Readme
| * marking serialization classJulio Lopez2015-07-071-1/+1
| |
* | Merge pull request #20804 from TheBlasfem/adding_brackets_to_array_in_docsRafael Mendonça França2015-07-081-1/+1
|\ \ | | | | | | Adding brackets to array in docs
| * | adding brackets to array in docsJulio Lopez2015-07-071-1/+1
|/ /
* | pass variants in rather than mutating the request.Aaron Patterson2015-07-071-48/+31
| | | | | | | | | | | | Variants are typically set in the controller based on some attribute of the request that the browser sent. We should make our tests more in line with reality by doing the same and not mutating the request object.
* | pass cookies from the jar in the HTTP_COOKIE headereileencodes2015-07-073-19/+11
| | | | | | | | | | we should be pushing the cookies in via headers rather than maintaining some object and "recycling" it.
* | Send cookies with requesteileencodes2015-07-073-2/+9
| |
* | Revert "Merge pull request #20758 from ↵Kasper Timm Hansen2015-07-074-25/+9
| | | | | | | | | | | | | | xijo/action_mailer_message_delivery_respects_i18n_locale" This reverts commit f2a8c23654d69dd8f294971487b5abf0e5d891c3, reversing changes made to 3046c9bbe154aa717a5147091be8b495ed8969c4.
* | Fix regression caused by a01d164bRafael Mendonça França2015-07-073-2/+37
| | | | | | | | | | | | | | | | | | When preload is used in a default scope the preload_values were returning nested arrays and causing the preloader to fail because it doesn't know how to deal with nested arrays. So before calling preload! we need to splat the arguments. This is not needed to includes because it flatten its arguments.
* | docs, clarify the meanaing of return values from validation methods.Yves Senn2015-07-072-2/+6
| | | | | | | | | | | | | | | | | | | | [ci skip] Closes #20792. Custom validation methods are implemented in terms of callbacks. The `validate` callback chain can't be halted using return values of individual callbacks.
* | docs, remove accidental :nodoc: of ActiveModel::Validations::ClassMethods ↵Yves Senn2015-07-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | methods. [ci skip] While this :nodoc: did hide the constant it also removed the following methods from the API docs: - #attribute_method? - #clear_validators! - #validate - #validators - #validators_on Those are public API and should be visible. Issue was caused by dee4fbc /cc @zzak
* | Merge pull request #20794 from vredniy/patch-1Robin Dupret2015-07-071-1/+1
|\ \ | | | | | | Update CHANGELOG.md [ci skip]
| * | Update CHANGELOG.mdDmitry Zudochkin2015-07-071-1/+1
|/ /
* | Merge pull request #20793 from pwnall/nested_testYves Senn2015-07-071-0/+10
|\ \ | |/ |/| Test proving that accepts_nested_attributes_for is secure against ID tampering attacks
| * Add test proving that accepts_nested_attributes_for is secure against ID ↵Victor Costan2015-07-071-0/+10
|/ | | | tampering attacks.
* Merge pull request #13897 from gmalette/nested-parameter-filtering-2Arthur Nogueira Neves2015-07-063-7/+28
|\ | | | | Allow filtering params based on parent keys
| * Allow filtering params based on parent keysGuillaume Malette2015-06-223-7/+28
| | | | | | | | | | | | | | | | | | | | Add the possibility to only filter parameters based on their full path instead of relying on the immediate key. config.filter_parameters += ['credit_card.code'] { 'credit_card' => { 'code' => '[FILTERED]' }, 'source' => { 'code' => '<%= puts 5 %>' } }
* | Merge pull request #20779 from maurogeorge/secrets-guidesRobin Dupret2015-07-061-0/+23
|\ \ | | | | | | Add to Security guides the secrets.yml [ci skip]
| * | Add to Security guides the secrets.ymlMauro George2015-07-061-0/+23
| | | | | | | | | | | | [ci skip]
* | | Merge pull request #20778 from maurogeorge/ordered_options_bang_docRobin Dupret2015-07-061-0/+8
|\ \ \ | | | | | | | | Add to RDoc of OrderedOptions the bang info [ci skip]
| * | | Add to RDoc of OrderedOptions the bang infoMauro George2015-07-061-0/+8
| | | | | | | | | | | | | | | | [ci skip]
* | | | Merge pull request #20767 from y-yagi/remove_unnecessary_fixture_methodYves Senn2015-07-061-4/+0
|\ \ \ \ | | | | | | | | | | remove unnecessary loading fixtures from `navigation_test.rb`
| * | | | remove unnecessary loading fixtures from `navigation_test.rb`yuuji.yaginuma2015-07-031-4/+0
| |/ / / | | | | | | | | | | | | | | | | it has been corrected in 0176aef1ebaa9f69001c7045a51727a8ea9b61b8 as for loading of fixtures in `test_helper.rb`, loading fixtures for each test is unnecessary.
* | | | Merge pull request #20758 from ↵Kasper Timm Hansen2015-07-054-9/+25
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | xijo/action_mailer_message_delivery_respects_i18n_locale ActionMailer::MessageDelivery respects current I18n.locale
| * | | | ActionMailer::MessageDelivery respects current I18n.localeJohannes Opper2015-07-054-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When #deliver_now is called all translations within the generated email will be looked up for the current I18n locale. I18n.locale = ‘de’ mail.deliver_now # Generates german email, correct In #enqueue_delivery the locale was not considered and the resulting job uses the default locale. I18n.locale = ‘de’ mail.deliver_later # Generate english email, incorrect In order to achieve a consistent behaviour the current locale is now always passed to `ActionMailer::DeliveryJob`.
* | | | | Merge pull request #20782 from kaspth/fix-controller-caching-testMatthew Draper2015-07-061-0/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix the random caching test failure. (Take two)
| * | | | | Fix the random caching test failure.Kasper Timm Hansen2015-07-051-0/+1
| | | | | |
* | | | | | Merge pull request #20748 from robin850/reserved-namesEileen M. Uchitelle2015-07-054-4/+8
|\ \ \ \ \ \ | | | | | | | | | | | | | | Display a more human readable list of reserved names
| * | | | | | Display a more human readable list of reserved namesRobin Dupret2015-07-014-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Interpolating an array inside a String will call #inspect on it. Let's call #join to display a more human-readable error message.
* | | | | | | Refactor cookie_jar to decouple it from request objecteileencodes2015-07-051-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change decouples `cookie_jar` allocation from the request object. We need this for moving controller tests to integration tests so we can access the `cookie_jar` object separately.
* | | | | | | Add gemfile entry for GlobalID until a new release is cut.Kasper Timm Hansen2015-07-052-3/+12
| | | | | | |
* | | | | | | Merge pull request #19877 from fny/job-global-id-error-improvementKasper Timm Hansen2015-07-052-7/+21
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | Improve error message when serializing unsaved records for jobs, Fixes #19861
| * | | | | | Improve error message when serializing unsaved records for jobsFaraz Yashar2015-06-282-7/+21
| | | | | | |
* | | | | | | Merge pull request #20780 from y-yagi/action_view_overview_guideRobin Dupret2015-07-051-8/+0
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | remove reference to `country_options_for_select` and `country_select` from guide [ci skip]
| * | | | | | remove reference to `country_options_for_select` and `country_select` from ↵yuuji.yaginuma2015-07-051-8/+0
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | guide [ci skip] these methods were removed in 2d27b82d4cf446543539ad20afcbad256d8aeff7
* | | | | | Merge pull request #20764 from maurogeorge/mailer_imageVijay Dev2015-07-041-0/+18
|\ \ \ \ \ \ | | | | | | | | | | | | | | Create Adding images in Action Mailer Views on guides
| * | | | | | Create Adding images in Action Mailer Views on guidesMauro George2015-07-031-0/+18
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | [ci skip]
* | | | | | Merge pull request #20773 from jonatack/distinct-instead-of-deprecated-uniqKasper Timm Hansen2015-07-031-2/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | [skip ci] #distinct instead of #uniq
| * | | | | | [skip ci] #distinct instead of #uniqJon Atack2015-07-031-2/+3
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as #uniq will be removed from Rails 5.0 as per the Active Support exception raised: ActiveSupport::DeprecationException: DEPRECATION WARNING: uniq is deprecated and will be removed from Rails 5.0 (use distinct instead).
* | | | | | Merge pull request #20766 from trosborn/diversityRafael Mendonça França2015-07-022-8/+8
|\ \ \ \ \ \ | |/ / / / / |/| | | | | changes names in guides to better reflect diversity
| * | | | | changes names in guides to better reflect diversity [ci-skip]Thomas Osborn2015-07-022-8/+8
|/ / / / /
* | | | | Fix spelling of `Thoughtleadering`eileencodes2015-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | Not much of a thought leader if I can't spell it correctly :wink:
* | | | | Use default model enum in fixtures if not definedeileencodes2015-07-023-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After 908cfef was introduced fixtures that did not set an enum would return nil instead of the default enum value. The fixtures should assume the default if a different enum is not defined. The change checks first if the enum is defined in the fixture before setting it based on the fixture.
* | | | | Merge pull request #20760 from claudiob/remove-true-false-classXavier Noria2015-07-021-6/+0
|\ \ \ \ \ | |_|_|/ / |/| | | | [ci skip] Don't use TrueClass, FalseClass in docs
| * | | | [ci skip] Don't use TrueClass, FalseClass in docsclaudiob2015-07-021-6/+0
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This sort of documentation style comes from 2009, probably due to the merging of merb (see https://github.com/rails/rails/commit/38b608ecab2441cd0c4e75bc08bdf57fcf85dd71#diff-017d9bc9b1d2bdae199b938d72c15488R120). Rails follows Ruby's convention to define which values are "truthy" or "falsey", so there is no need to specify that the returned value must strictly be a TrueClass or FalseClass. /cc @fxn