| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This reverts commit 0f6b101e09d210cea2494c5d4225760f1951ea67.
Reason: It's better to let `unscope` be documented. We can add a
separate section for `except`.
|
| |
|
| |
|
|
|
|
| |
The example showed is `except`, however the method "documented" is `unstop`. Fix to align the docs to the example.
|
|
|
|
| |
Also use appropriate mailer syntax in the `find_each` block.
|
|
|
|
| |
Put all options for overloading `find` in one section
|
|
|
|
|
|
| |
Add docs on what happens when a numerical argument is provided to last.
Since `last!` behaves exactly the same way but can raise an argument we can consolidate it in the `last` section.
|
|
|
|
|
|
| |
Add docs on what happens when a numerical argument is provided to take.
Since `take!` behaves exactly the same way but can raise an argument we can consolidate it in the `take` section.
|
|
|
|
| |
Since `find_by!` behaves exactly the same way but can raise an argument we can consolidate it in the `find_by` section.
|
|
|
|
|
|
| |
Add docs for `first` when provided a numerical argument.
Since `first!` behaves exactly the same way but can raise an argument we can consolidate it in the `first` section.
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
This reverts commit cede0363830e28e73feafc662eccae7d1db526bb.
Reason: CHANGELOG should not be updated on docrails
|
| | |
|
|\ \
| | |
| | | |
Update the levenshtein distance method in guides.
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Add missing period in Getting Started guide
|
|/ /
| |
| |
| | |
Within section 5.10 Adding Some Validation
|
|\ \
| | |
| | | |
MySQL doesn't work with foreign keys
|
|/ /
| |
| |
| |
| |
| | |
This was previously fixed in e84799d but broken in 3f596f8. This commit
reintroduced the conditional that prevents the foreign keys from being
added to MySQL databases.
|
|\ \
| | |
| | | |
Fix test with `add_foreign_key` DSL
|
|/ / |
|
|\ \
| | |
| | |
| | | |
rename primary key sequence only if it exists
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
Always instrument ActiveSupport::Cache
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The current approach is broken because it uses a thread local value
which means on multi-threaded environments it has to be turned on
per thread. Secondly, ActiveSupport::Notifications does not
instrument items when there are not subscribers so this flag is
unnecessary.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Add always permitted parameters as a configurable option.
[Rafael Mendonça França + Gary S. Weaver]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* General style fixes.
* Add changes to configuration guide.
* Add missing tests.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* This commit adds back the always_permitted_parameters
configuration option to strong paramaters.
* The initial pull requests where this feature was added
are the following:
- https://github.com/rails/rails/pull/12682
- https://github.com/rails/strong_parameters/pull/174
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update documentation for run_callbacks
|
| | | | | |
| | | | | |
| | | | | | |
In some cases run_callbacks will return nil. I'm attempting to update the documentation for the method to clarify.
|
|/ / / / / |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Leave the note for `ActiveModel`, since it can't yet detect mutations
(hopefully we can change this in time for 4.2). However, we now detect
mutations on all supported types in `ActiveRecord`, so we can note that
`_will_change!` is no longer needed there.
|
| | | |
| | | |
| | | |
| | | | |
Closes #15942
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fix bug, when ':dependent => :destroy' violates foreign key constraints
Conflicts:
activerecord/CHANGELOG.md
activerecord/lib/active_record/associations/builder/association.rb
activerecord/lib/active_record/associations/builder/has_one.rb
|
| | | | |
| | | | |
| | | | |
| | | | | |
constraints, issue #12380
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
Detect in-place modifications on Strings
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | | |
Add AR::Base#valid! method
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Acts same as valid? but raises AR::RecordInvalid exception
if validation fails
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
databases.rake refactoring
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
ActiveRecord#pluck
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
It allows the code to be more declarative and elegant.
|