| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
remove deprecated `assert_send` from assertion list [ci skip]
|
|/
|
|
|
| |
`assert_send` was deprecated in minitest 5.10.0.
Ref: https://github.com/seattlerb/minitest/commit/f95ef007ec64d956d88fedc37fd2ed7e106b777e
|
| |
|
| |
|
|
|
| |
Follow up to 0d20530e5edfd7d00fbc2a38ef5f87eca6ccc924
|
| |
|
|\
| |
| | |
Enable `block` variable in view
|
| | |
|
| |
| |
| |
| | |
Remove `block` keyword from reserved method names
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
If a Error object was serialized in the database as YAML in the Rails
4.2 version, if we load in the Rails 5.0 version it will miss the
@details instance variable so methods like #clear and #add will start to
fail.
|
|\ \
| |/
|/| |
Fix test breaking error uninitialized constant ActiveRecord::Type::Value
|
|/ |
|
|\
| |
| | |
Extract notes as binary
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Prevents:
ArgumentError: invalid byte sequence in UTF-8
railties/lib/rails/source_annotation_extractor.rb:115:in `=~'
railties/lib/rails/source_annotation_extractor.rb:115:in `block in extract_annotations_from'
And there's no reason we need to interpret the files as UTF-8
when scanning for annotations.
Applies to Rails 4.2 as well.
|
|\ \
| | |
| | |
| | | |
Moved database-specific ActiveModel types into ActiveRecord
|
| | |
| | |
| | |
| | | |
ie. DecimalWithoutScale, Text and UnsignedInteger
|
|\ \ \
| | | |
| | | | |
Check whether the current attribute being read is aliased or not before reading
|
| | | |
| | | |
| | | |
| | | | |
- If aliased, then use the aliased attribute name.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
- If aliased, then use the aliased attribute name.
- Fixes #26417.
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Should be sync the `primary_key` definition with actually created
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Actually the `primary_key` definition is not used but the inconsistency
is confusing. Actual definition is `bigint auto_increment PRIMARY KEY`
so `UNSIGNED` and `(8)` is unnecessary.
See also #21607.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
While these method aren't public API, they are a non-trivial internal
API which warrant a bit of explanation.
|
|\ \ \ \
| | | | |
| | | | | |
Fix `apply_seconds_precision` not to be affected by `mathn`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Currently `apply_seconds_precision` cannnot round usec
when after `require 'mathn'`.
```
irb(main):001:0> 1234 / 1000 * 1000
=> 1000
irb(main):002:0> 1234 - 1234 % 1000
=> 1000
irb(main):003:0> require 'mathn'
=> true
irb(main):004:0> 1234 / 1000 * 1000
=> 1234
irb(main):005:0> 1234 - 1234 % 1000
=> 1000
```
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Only move fixture_file_upload to IntegrationTest
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The rest of the helpers are better placed on Session -- and this is the
only one that cares which class it is defined on.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Don't clear digest cache in test environment
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It disables recompilation of templates on every request in test env.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Fix ActiveModel::Model API documentation [ci skip]
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
In Rails 4.1, Action View was extracted from Action Pack, but this
change was not reflected in the API documentation of ActiveModel::Model.
This commits makes it explicit in the documentation that Active Model
also interacts with Action View as well as Action Pack.
[ci skip]
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
In ActiveModel::Model API documentation, referrences to Rails
components were tagged with fixed-width font and named as if
they were modules.This fixes the inconsistency to match API
documentation conventions.
[ci skip]
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Fix association scope inside autosaved association callbacks
|
| | | | | | | | |
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| |_|_|/ / / / /
|/| | | | | | | |
[ci skip] Document regex change
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
ActionCable::Connection::Base doc code sample syntax error
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
kamipo/translate_not_null_violation_to_specific_exception
Translate NOT NULL violation to the specific exception
|
| |/ / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Raise `ActiveRecord::NotNullViolation` when a record cannot be inserted
or updated because it would violate a not null constraint.
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
Should inherit `StatementInvalid` rather than `WrappedDatabaseException`
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Because defunct wrapper class is kept for compatibility.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Docs: correct punctuation in puma.rb
|
|/ / / / / / / /
| | | | | | | |
| | | | | | | | |
Clarifying some of the language/punctuation and removing a couple comma splices.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Fix `add_index` to normalize column names and options
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Currently does not work the following code.
```ruby
add_index(:people, ["last_name", "first_name"], order: { last_name: :desc, first_name: :asc })
```
Normalize column names and options to fix the issue.
|
|\ \ \ \ \ \ \ \ \
| |_|_|_|_|_|/ / /
|/| | | | | | | | |
Remove unnecessary `connection_name` variable
|
| | |/ / / / / /
| |/| | | | | | |
|