| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \ \
| | | | | |
| | | | | | |
[ci skip] Fix what is pushed to nesting about eval family
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Fixed duplicating ActiveModel::Errors#details
|
| | | | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Use attribute assignment module logic during ActiveModel initialization.
|
| | |_|/ /
| |/| | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
pretty_print will use #inspect if a subclass redefines it
|
| | | | | | |
|
| |/ / / /
|/| | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
Extracted attributes assingment from ActiveRecord to ActiveModel
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Minor style changes across the board. Changed an alias to an explicit
method declaration, since the alias will not be documented otherwise.
|
| | |_|_|/
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | | |
`ActiveModel::AttributesAssignment`
Allows to use it for any object as an includable module.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Given that this was originally added to normalize an error that would
have otherwise come from the database (inconsistently), it's more
natural for us to raise in `type_cast_for_database`, rather than
`type_cast_from_user`. This way, things like numericality validators can
handle it instead if the user chooses to do so. It also fixes an issue
where assigning an out of range value would make it impossible to assign
a new value later.
This fixes several vague issues, none of which were ever directly
reported, so I have no issue number to give. Places it was mentioned
which I can remember:
- https://github.com/thoughtbot/shoulda-matchers/blob/9ba21381d7caf045053a81f32df7de2f49687820/lib/shoulda/matchers/active_model/allow_value_matcher.rb#L261-L263
- https://github.com/rails/rails/issues/18653#issuecomment-71197026
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #18580.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #18632
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Use 'public_send' over the 'send' method for object's properties and public methods.
|
| |/ / / / |
|
|/ / / /
| | | |
| | | |
| | | | |
skip]
|
|\ \ \ \
| | | | |
| | | | | |
Speed up ActionController::Renderer `normalize_keys` by ~28%.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously env was duplicated and then had it's keys mutated. This iterates through
the hash twice.
Using `transform_keys`, duplication and key mutation is a single iteration.
`convert_symbols` was renamed to `http_header_format`.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
fix wording of CSS manifest instructions [ci skip]
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Disable builds AR-JDBC against master
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Currently, bundling `activerecord-jdbc-adapter`'s master branch seems to
be broken. See jruby/activerecord-jdbc-adapter#614
This commit partially reverts #12107
|
|\ \ \ \ \
| | | | | |
| | | | | | |
fix regexp for validate an integer in guides [ci skip]
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove config.assets
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Provided by sprockets-rails plugin
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
A shortcut to setup controller environment
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Render arbitrary templates outside of controller actions
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
To have an easier way to setup a controller
instance with custom environment
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Add `ActionController::Metal#set_request!` to set a request
on controller instance without calling dispatch.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
BenMorganIO/use-two-spaces-instead-of-one-for-wrap-params
use two spaces instead of one for include root in json
|
| | |/ / / /
| |/| | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Add :formats to options list of render documentation.
|
|/ / / / / |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Keeping with our behavior elsewhere in the system, invalid input is
assumed to be `nil`.
Fixes #18629.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Add ActiveModel::Errors#codes
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
To be able to return type of validator, one can now call `details`
on Errors instance:
```ruby
class User < ActiveRecord::Base
validates :name, presence: true
end
```
```ruby
user = User.new; user.valid?; user.errors.details
=> {name: [{error: :blank}]}
```
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Replace `if exists` with `table_exists?` and drop table with `drop_table`
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
`drop_table`
since 'drop table if exists' statement does not always work with some databases such as Oracle.
also Oracle drop table statement will not drop sequence objects.
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Travis: Test on jruby-head only for now
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
Arel head does not support 1.9 anymore.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
morgoth/add-missing-dependency-to-activemodel-naming
Add missing AS core extension dependency
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| |_|_|_|_|/ /
|/| | | | | | |
Add missing options to Error Message Interpolation guide [CI skip]
|