- 12 6月, 2015 40 次提交
-
-
由 Sean Griffin 提交于
`serialize` makes the contract that if it is given a class name, it will never return something other than an instance of that class. This means that it must cast `nil` to the empty form of that object. As such, we should then persist empty forms of that object as `nil`. While this is techincally under the contract of ``` model.attribute = value assert_equal model.attribute, model.tap(&:save).reload.attribute ``` which we can't actually test universally without property based testing, it has come up more than once and is worth calling out specifically since we aren't looking to change it.
-
由 Sean Griffin 提交于
[Sean Griffin & jmondo]
-
由 Sean Griffin 提交于
If the subtype provides custom schema dumping behavior, we need to defer to it. We purposely choose not to handle any values other than an array (which technically should only ever be `nil`, but I'd rather code defensively here). Fixes #20515.
-
由 Santiago Pastorino 提交于
Rails api
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
ParamsWrapper was initially removed from API controllers according to the following discusision: https://github.com/rails-api/rails-api/issues/33 However, we're including it again so Rails API devs can decide whether to enable or disable it.
-
由 Jorge Bejar 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Jorge Bejar 提交于
See the following commit to have context about this change: https://github.com/rails/rails/commit/757a2bc3e3e52a5d9418656928db993db42b741b
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
-
由 Jorge Bejar 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-