| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This extracts the logic that was embedded in a Rake task into a static
method.
Bonus: the first test for `rake db:migrate`
|
|\
| |
| |
| |
| | |
JackDanger/remove_redundant_self_in_class_method_calls
Remove redundant `self.` in class method calls
|
| |
| |
| |
| | |
These are the only instances of this in the whole code base.
|
|\ \
| | |
| | | |
Prevent using String#scrub on Rubinius
|
|/ /
| |
| |
| |
| |
| | |
Rubinius' has built-in support for String#scrub but it doesn't have yet
support for ASCII-incompatible chars so for now, we should rely on the
old implementation of #tidy_bytes.
|
|/
|
|
|
|
|
| |
This reverts commit f632f79b8dcd144408c66a544984b2ba9cf52f87, reversing
changes made to 98c7fe87690ca4de6c46e8f69806e82e3f8af42d.
Closes #16343
|
|\
| |
| | |
remove unneeded test model for ActiveModel test cases.
|
| | |
|
|\ \
| | |
| | | |
Add implicit receiver support to `Object#with_options`
|
| | | |
|
|\ \ \
| | | |
| | | | |
Remove @state.parent assignment on commit
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This piece of code was introduced on
67d8bb963d5d51fc644d6b1ca20164efb4cee6d7 , which was calling
`committed?` in the `transaction_state` before calling the `committed!`
method. However on 7386ffc781fca07a0c656db49fdb54678caef809, the
`committed?` check was removed and replaced by a `finalized?`, which
only checks if the state is not nil. Thus we can remove that line.
|
| | | |
| | | |
| | | |
| | | | |
use helpers.include? so we don't get any false positives
|
| | | |
| | | |
| | | |
| | | |
| | | | |
we should not be accessing internals to figure out if a method is
defined.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
since helpers is a set, we can be confident about when to remove methods
from the module.
|
| | | |
| | | |
| | | |
| | | | |
after this, we can disconnect @module from the instance
|
| | | |
| | | |
| | | |
| | | | |
we can cache the module on the stack, then reuse it
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
GET request should not write to database note added. [ci skip]
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Add missing test case for Array#to_sentence, collect all test cases for Object#to_param at one place and avoid repitition
|
|/ / / /
| | | |
| | | |
| | | | |
Object#to_param at one place and avoid repitition
|
|\ \ \ \
| |_|/ /
|/| | | |
Move array test files under array
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
[ci skip]
This fixes the broken code block rendering and indents the examples
within the parameter list.
|
|\ \ \ \
| | | | |
| | | | | |
[ci skip] fix doc typo for validates_uniqueness_of
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
Give password_confirmation div the "field" class in the scaffold generator "_form" partial
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix json autoload
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`Time#as_json`, `Date#as_json` and `DateTime#as_json` incorrectly depends on a
delegation that is set up in `active_support/json/encoding`. We cannot simply
require that file in `core_ext/object/json` because it would cause a circular
dependency problem (see #12203 for background). We should instead rely on AS's
autoload to load that file for us on-demand.
To trigger autoload correctly, we need to reference the `AS::JSON::Encoding`
constant instead of using the delegated version.
Fixes #16131.
|
| |/ / / / |
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Closes #16163
Adding attachments after a call to `mail` will result in invalid emails.
This is related to the fact, that `mail` is making the required preparations
before the email is ready to be sent. These change depending on your
added attachments.
|
|\ \ \ \
| |/ / /
|/| | | |
Define Hash#to_query and set Hash#to_param as alias to it; with test cases
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Move object test files under object
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
remove blank lines at the start of the ActiveRecord files
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
we know the routes should not be "optimized" when mounting an
application
|
| | | |
| | | |
| | | |
| | | |
| | | | |
this caching doesn't increase performance, but does increase complexity.
remove it for now and find better ways to speed up this code.
|
|\ \ \ \
| | | | |
| | | | | |
Added documentation for change_table
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
Transactions refactoring
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Also add test to assets the savepoint name
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Add a transaction manager per connection, so it can controls the
connection responsibilities.
Delegate transaction methods to transaction_manager
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The finishing variable on the transaction object was a work-around for
the savepoint name, so after a rollback/commit the savepoint could be
released with the previous name.
related:
9296e6939bcc786149a07dac334267c4035b623a
60c88e64e26682a954f7c8cd6669d409ffffcc8b
|
| | | | | | |
|