| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
/cc @sgrif
|
|\
| |
| | |
Remove old deprecation warning
|
| |
| |
| |
| |
| | |
This has been around for a couple of versions now, a `NoMethodError`
should suffice at this point.
|
|\ \
| | |
| | | |
Add missing test cases for `attribute_names` instance method
|
| | |
| | |
| | |
| | |
| | | |
There is a class method with the same name that is tested, but not the
instance method.
|
|\ \ \
| |/ /
|/| | |
`reload` should fully reload attributes
|
|/ /
| |
| |
| |
| |
| | |
`reload` is meant to put a record in the same state it would be if you
were to do `Post.find(post.id)`. This means we should fully replace the
attributes hash.
|
|\ \
| |/
|/| |
[ci skip] Added missing colon in asset manifest JSON
|
| | |
|
|\ \
| | |
| | | |
Create with_env helper for tests.
|
|/ / |
|
|\ \
| | |
| | | |
Return a null object from `AttributeSet#[]`
|
| | | |
|
|\ \ \
| | | |
| | | | |
Move `attributes` to the `AttributeSet` object.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Add missing test cases for `attribute_method?`
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
Use with_parse_json_times helper in tests.
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Avoid hardcoded magic number in test teardown.
|
|/ / / |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
[ci skip] Add Tip for change_column_null and change_column_default in guides
|
| | | |
|
|\ \ \
| | | |
| | | | |
Make dependencies.rb add a name to NameError
|
| | | | |
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | | |
The :singleton-method: directive is printed in the docs.
This directive is not necessary as the method is documentable just fine.
|
|\ \ \
| | | |
| | | | |
Add to guides app and helper objects on command line
|
| | | |
| | | |
| | | |
| | | | |
[ci skip]
|
|\ \ \ \
| | | | |
| | | | | |
Fix state leak.
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove extra list item element in engine guide
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Cleaning up the list items that detail what an engines `--full` option
generates. Joining a multiline multi list item into a multiline single
list item.
[ci skip]
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Don't save through records twice
Conflicts:
activerecord/CHANGELOG.md
activerecord/test/cases/associations/has_many_through_associations_test.rb
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If the through record gets created in an `after_create` hook that is
defined before the association is defined (therefore after its
`after_create` hook) get saved twice. This ensures that the through
records are created only once, regardless of the order of the hooks.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
yuki24/better-docmentation-for-dynamic-error-pages
ErrorsController shouldn't inherit ApplicationController, but ActionController
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
ActionController::Base
Inheriting `ApplicationController` often causes an issue as it always
has before/after actions. It should encourage to use `ActionController::Base` instead.
[ci skip]
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Always update counter caches in memory when adding records
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Before, calling `size` would only work if it skipped the cache, and
would return a different result from the cache, but only if:
- The association was previously loaded
- Or you called size previously
- But only if the size was 0 when you called it
This ensures that the counter is appropriately updated in memory.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Don't use `Column` for type casting in Relation calculations
|
| | | | | | | | | |
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
Don't use column object when calculating type cast defaults
|
| |/ / / / / / / /
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Moves towards removing type casting knowledge from the column entirely
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
Don't use column object for type casting in `quoting`
|
| |/ / / / / / / /
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
We're never going to be able to use the attribute object here, however,
so let's just accept the ugly demeter violation here for now.
Remove test cases which were either redundant with other tests in the
file, or were actually testing the type objects (which are tested
elsewhere)
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
Don't rely on the column for type casting reflections
|