- 04 1月, 2017 40 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Jon Moss 提交于
`Metal#env` --> `ActionController::Metal#env` [ci skip]
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael França 提交于
Fix typo s/permited/permitted/
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Ryuta Kamizono 提交于
``` % git grep -n permited actionview/test/template/url_helper_test.rb:238: def test_button_to_with_permited_strong_params actionview/test/template/url_helper_test.rb:245: def test_button_to_with_unpermited_strong_params activerecord/test/cases/relations_test.rb:1620: def test_update_on_relation_passing_active_record_object_is_not_permited ```
-
由 Rafael França 提交于
Use `SET CONSTRAINTS` for `disable_referential_integrity` without superuser privileges
-
由 Rafael França 提交于
Fix `select_rows` method signature for consistency
-
由 Rafael Mendonça França 提交于
-
由 Rafael França 提交于
Standardize Action Cable README.md
-
由 Rafael Mendonça França 提交于
Deprecate passing `name` to `indexes` like `tables`
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Fix test name `deprecated` to `not_permitted`
-
由 Ryuta Kamizono 提交于
Follow up to 4b6709e8.
-
由 Jon Moss 提交于
Rephrase CHANGELOG.md entry
-
由 Jon Moss 提交于
Rephrase entry with better sounding English. [ci skip]
-
由 Ryuta Kamizono 提交于
Passing `name` to `tables` is already deprecated at #21601. Passing `name` to `indexes` is also unused.
-
由 Sean Griffin 提交于
Add explicit testing for `uncached` vs. `cached`
-
由 Ryuta Kamizono 提交于
Related #22973, #24708. `select_all`, `select_one`, `select_value`, and `select_values` method signature is `(arel, name = nil, binds = [])`. But `select_rows` is `(sql, name = nil, binds = [])`.
-
由 Rafael Mendonça França 提交于
When you ask to generate multiple nested inputs using: field_for('comments[]', Comment.new) do |c| c.text_field :body Rails should generated the names like `post[comments][][body]`. To make sure we don't have regression the fake models now use the same implementation of `#to_param` as `ActiveRecord::Base` Fixes #26942
-
由 Arthur Nogueira Neves 提交于
Avoid to call `set_inverse_instance` twice for `has_many` association
-
由 Sean Griffin 提交于
remove needless warning for hstore
-
由 Sean Griffin 提交于
Compare deserialized values for `PostgreSQL::OID::Hstore` types
-
由 Jon Moss 提交于
Per the regression commit below, the commit changes the behavior of `#changed?`to consult the `#changed_in_place?` method on `Type::Value` classes. Per this change, `PostgreSQL::OID::Hstore` needs to override this method in order to compare the deserialized forms of the two arguments. In Ruby, two hashes are considered equal even if their key order is different. This commit helps to bring that behavior to `Hstore` values. Fixes regression introduced by 8e633e50 Fixes #27502
-
由 Kasper Timm Hansen 提交于
Extract variant setter to process method
-
由 Kasper Timm Hansen 提交于
Closes #27555. [ Ben A. Morgan & Kasper Timm Hansen ]
-
由 Rafael Mendonça França 提交于
find and exists?
-
由 Arthur Nogueira Neves 提交于
Don't list out tasks as separately that are under lib, which cause them to be listed twice under Libraries and tasks.
-
由 Sean Griffin 提交于
Refining Array#sum monkey-patch using Refinements
-
由 Sean Griffin 提交于
Prevent duplicate data-disable-with attributes
-
由 Sean Griffin 提交于
Clarify Bi-directional Associations docs
-
由 Sean Griffin 提交于
Remove duplicated model class definitions in `test/cases/base_test.rb`
-
由 Sean Griffin 提交于
In f1a0fa9e we moved backend specific timestamp behavior out of the type and into the adapter. This was in line with our general attempt to reduce the number of adapter specific type subclasses. However, on PG, the array type performs all serialization, including database encoding in its serialize method. This means that we have converted the value into a string before reaching the database, so no adapter specific logic can be applied (and this also means that timestamp arrays were using the default `.to_s` method on the given object, which likely meant timestamps were being ignored in certain cases as well) Ultimately I want to do a more in depth refactoring which separates database serializer objects from the active model type objects, to give us a less awkward API for introducing the attributes API onto Active Model. However, in the short term, we follow the solution we've applied elsewhere for this. Move behavior off of the type and into the adapter, and use a data object to allow the type to communicate information up the stack. Fixes #27514.
-