- 31 5月, 2016 13 次提交
-
-
由 Sean Griffin 提交于
Prior to this change, we would get collisions if Active Record objects of different classes with the same ID were used as keys of the same hash. It bothers me slightly that we have to allocate inside of this method, but Ruby doesn't provide any way to hash multiple values without allocation
-
由 Jon Moss 提交于
- Remove dead classes / dead code - Move class definitions to where they are used, don't define in a shared space
-
由 Jon Moss 提交于
Fix Typo and Grammar [ci skip]
-
由 Sean Griffin 提交于
This behavior was broken by 36e9be85. When the value is assigned directly, either through mass assignment or directly assigning a hash, the hash gets passed through to this writer method directly. While this is intended to handle certain cases, when an explicit converter has been provided, we should continue to use that instead. The positioning of the added guard caused the new behavior to override that case. Fixes #25210
-
由 David Heinemeier Hansson 提交于
-
由 Rajat Bansal 提交于
-
由 Rafael França 提交于
Move `Workshop` class definition
-
由 Jon Moss 提交于
We should define it only where we need it, not in the global abstract unit
😬 -
由 Sean Griffin 提交于
Reuse a result of `table.associated_table(column)` in `AssociationQueryHandler.value_for`
-
由 Sean Griffin 提交于
Currently `exists?` does some hackery where it assumes that we can join onto anything that we passed to `eager_load` or `includes`, which doesn't work if we are joining onto a polymorphic association. Actually figuring out if we want to include something would require knowledge deep within the join dependency module, which is hard to pull up. The simplest solution is just to pass a flag down that says we're not actually going to try to eager load any of the data. It's not the solution I'd like, but that code really needs to be untangled before we can do much with it. This is another attempt at 6d5b1fdf which should address the concerns that led to reverting it in 4ecabed2.
-
由 Kasper Timm Hansen 提交于
use OpenSSL::Cipher instead of deprecated OpenSSL::Cipher::Cipher
-
由 Sean Griffin 提交于
We now use default procs inside of the errors object, which gets included by default when marshaling anything that includes `ActiveModel::Validations`. This means that Active Record objects cannot be marshalled. We strip and apply the default proc ourselves. This will ensure the objects are YAML serializable as well, since YAML falls back to marshal implementations now. This is less important, however, as the errors aren't included when dumping Active Record objects. This commit does not include a changelog entry, as 5.0 is still in RC status at the time of writing, and 5.0.0 will not release with the bug this fixes. Fixes #25165
-
由 Kasper Timm Hansen 提交于
Fix migration class names in tests
-
- 30 5月, 2016 4 次提交
-
-
由 Robin Dupret 提交于
Add a missing capital letter and avoid using absolute links to the API because they may refer to out-dated documentation on the Edge site.
-
由 Arthur Nogueira Neves 提交于
Requesting documentation update
-
由 Arthur Nogueira Neves 提交于
Change some establish_connection logic
-
- 29 5月, 2016 10 次提交
-
-
由 David Heinemeier Hansson 提交于
Move new default initializers into separate directory
-
由 प्रथमेश Sonpatki 提交于
[ci skip]Fix wrong require path raising LoadError
-
由 willnet 提交于
-
由 प्रथमेश Sonpatki 提交于
ActionController::Parameters: Fix #dig doc code
-
由 Christian Wesselhoeft 提交于
This example code wasn't getting wrapped in a `<code>` tag due to incorrect indentation.
-
由 Kasper Timm Hansen 提交于
rename enum_prefix and enum_suffix options to _prefix and _suffix [ci skip]
-
由 yuuji.yaginuma 提交于
`:enum_prefix` and `:enum_suffix` was changed to `:_prefix` and `:_suffix` in #20999.
-
由 Prathamesh Sonpatki 提交于
- These initializers are new defaults for Rails 5 and newly generated apps do not need to change them. - Fixes #25181
-
由 Kasper Timm Hansen 提交于
Follow up to e45f388e.
-
由 Kasper Timm Hansen 提交于
When changing the generated integration tests to assert redirects with an absolute path this redirection check in `assert_redirected_to` against the absolute response location would now pass: https://github.com/rails/rails/blob/af245aaf3a1c447752a1b5895adddc66e5f73c00/actionpack/lib/action_dispatch/testing/assertions/response.rb#L55 Thus we'd break early instead of hitting `assert_operator` and have 2 fewer assertions per `assert_redirected_to` as `assert_operator` is composed of 2 assertions internally: https://github.com/seattlerb/minitest/blob/4e146b1515b19a5c474e39c174b037510f6dbc6e/lib/minitest/assertions.rb#L254-L258 Deduct 2 assertions for 2 redirects taking the expected count down by 4 in total for the two failing tests.
-
- 28 5月, 2016 13 次提交
-
-
由 David Heinemeier Hansson 提交于
Remove public/ files for API apps
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
The first comment does not explain anything that the code doesnt and the second is now irrelevant with the dedicated API mode
-
由 Prathamesh Sonpatki 提交于
- Fixes #25180
-
由 David Heinemeier Hansson 提交于
-
由 प्रथमेश Sonpatki 提交于
fix incorrect class name [ci skip]
-
由 Ryuta Kamizono 提交于
-
由 yuuji.yaginuma 提交于
-
由 Vipul A M 提交于
Use `add_index` instead of `execute` in guides [ci skip]
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
-
由 Vipul A M 提交于
[ci skip] Reword doc for around_enqueue callback
-
由 Tim Wade 提交于
Taken literally, the documentation suggests that the callback gets called twice (before and after enqueueing). By wording it similarly to that of around_perform this confusion is avoided.
-