| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Currently `Rails.cache.clear` raises Errno::ENOENT if it's run just
after cloning a new Rails project. It should succeed without removing
files or directories.
|
|
|
|
|
| |
This make the config/initializers run before the railties are loaded
what can break some configurations.
|
|\
| |
| |
| |
| |
| | |
treble37/update-docs-ActionDispatch__Request__Session.create-for-pr
added docs for ActionDispatch::Request::Session#create
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Change join model name constant to private constant
|
| | |
| | |
| | |
| | | |
This will resolve the fixme message which is about making constant invisible.
|
|\ \ \
| |_|/
|/| |
| | | |
Add charset and collation options support for MySQL string and text columns.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
columns
Example:
create_table :foos do |t|
t.string :string_utf8_bin, charset: 'utf8', collation: 'utf8_bin'
t.text :text_ascii, charset: 'ascii'
end
|
|\ \ \
| | | |
| | | | |
Accept lambda as child_index option in #fields_for method
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix a regression introduced by removing unnecessary db call when replacing
|
| | | | |
| | | | |
| | | | |
| | | | | |
When replacing a has_many association with the same one, there is nothing to do with database but a setter method should still return the substituted value for backward compatibility.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Raise ArgumentError if an unrecognised callback is skipped
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
At present, if you skip a callback that hasn't been defined,
activesupport callbacks silently does nothing. However, it's easy to
mistype the name of a callback and mistakenly think that it's being
skipped, when it is not.
This problem even exists in the current test suite.
CallbacksTest::SkipCallbacksTest#test_skip_person attempts to skip
callbacks that were never set up.
This PR changes `skip_callback` to raise an `ArgumentError` if the
specified callback cannot be found.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix AS::Callbacks raising an error when `:run` callback is defined.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This reverts commit 796cab45561fce268aa74e6587cdb9cae3bb243e.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It behaves in the same way that the abstract adapter.
[ci skip]
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Fix URL rails-framework-hooks
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
correct the directory which rake notes look by default [ci skip]
|
| | |_|_|_|_|/
| |/| | | | | |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
correct spell of exist [ci skip]
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
drop_table method documentation for mysql and postgresql adapters [ci skip]
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
fix missing "if" in API docs for ActionController::Parameters#permit
|
| |/ / / / / / |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
After merging #19377 ActionPack tests were missing a require for
`ActiveSupport::LogSubscriber::TestHelper` and change didn't take
into account that logger could be nil. Added the require and only log to
info if logger exists.
This wasn't caught earlier because these tests only run after a merge.
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Fix method signature of `parse_query` to match rack
|
| | |_|_|/ /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Recently rack was changed to have a second argument on the `parse_query`
method (in rack/rack#781). Rails relies on this and it's `parse_query`
method was complaining about missing the second argument. I changed the
arguments to `*` so we don't have this issue in the future.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
when a template is missing for the default render, do head no_content instead
|
| |/ / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | | |
use singular table name if pluralize_table_names is setted as false whil...
|
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
creating foreign key
test case for use singular table name if pluralize_table_names is setted as false while creating foreign key
refactor references foreign key addition tests
use singular table name while removing foreign key
merge foreign key singular table name methods
remove unnecessary drop table from test
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
[ci skip] Remove Extensions to `Proc` section
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
`Proc#bind` is removed with 4.1 release
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update command_tasks source code
|
| | | | | | |
|
|/ / / / / |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
correct output of auto_discovery_link_tag [ci skip]
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
change REQUEST_URI to PATH_INFO
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | | |
request.env['REQUEST_URI'] returns full URI of the resource
request.env['PATH_INFO'] returns only path of the resource
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | | |
Allow an array to be a default translation value.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
4.2.1 introduced a change to the way `translate`/`t` works with an
option of `default: [[]]`. In 4.2.0, this would give a default value of
`[]`, but in 4.2.1, it leads to a missing translation.
`default: [[]]` is again allowed for cases where a default of `[]` is
needed.
This addresses GitHub issue 19640.
|
| |_|_|/ /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
`sql_runtime` was getting invoked even when the logger was set to fatal.
This ensures that does not happen by checking that the logger is set to
info level before logging the view runtime.
This reduces the number of times `sql_runtime` is called for integration
tests with a fatal logger from 6 to 2.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
[skip ci] Update information about #link_to attributes
|
| |/ / / |
|