- 27 11月, 2013 15 次提交
-
-
由 Yves Senn 提交于
[ci skip]removed obsolete information about `options` parameter in create method
-
由 Kuldeep Aggarwal 提交于
-
由 Yves Senn 提交于
[ci skip] used new syntax for scopes
-
由 Kuldeep Aggarwal 提交于
-
由 Rafael Mendonça França 提交于
Fix bug when validating the uniqueness of an aliased attribute. Conflicts: activerecord/CHANGELOG.md
-
由 Jeremy Kemper 提交于
JSON encoder refactor
-
由 Akira Matsuda 提交于
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
Got all the tests passing again. Support for `encode_json` has been removed (and consequently the ability to encode `BigDecimal`s as numbers, as mentioned in the previous commit). Install the `activesupport-json_encoder` gem to get it back.
-
由 Godfrey Chan 提交于
This is because the new encoder will no longer support encode_json. Therefore our only choice is to return `to_i` or `to_s` in `BigDecimal#as_json`. Since casting a BigDecimal to an integer is most likely a lossy operation, we chose to encode it as a string. Support for encoding BigDecimal as a string will return via the `activesupport-json_encoder` gem.
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
-
由 Akira Matsuda 提交于
-
- 26 11月, 2013 14 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Yves Senn 提交于
changed update counter to act on unscoped model
-
由 heruku 提交于
-
由 Rafael Mendonça França 提交于
remove leftover firebird adapter tests.
-
由 Yves Senn 提交于
[ci skip] This is a follow up to #12609 and integrates #12158. Thanks @aspiers. Closes #12158.
-
由 Akira Matsuda 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
This prevents the following error when a MySQL index on a foreign key column is renamed: ``` ActiveRecord::StatementInvalid: Mysql2::Error: Cannot drop index 'index_engines_on_car_id': needed in a foreign key constraint: DROP INDEX `index_engines_on_car_id` ON `engines` ``` refs: #13038.
-
由 Rafael Mendonça França 提交于
Raise `RecordNotDestroyed` when children can't be replaced
-
由 Brian Thomas Storti 提交于
-
由 Brian Thomas Storti 提交于
Fixes #12812 Raise `ActiveRecord::RecordNotDestroyed` when a child marked with `dependent: destroy` can't be destroyed. The following code: ```ruby class Post < ActiveRecord::Base has_many :comments, dependent: :destroy end class Comment < ActiveRecord::Base before_destroy do return false end end post = Post.create!(comments: [Comment.create!]) post.comments = [Comment.create!] ```` would result in a `post` with two `comments`. With this commit, the same code would raise a `RecordNotDestroyed` exception, keeping the `post` with the same `comment`.
-
由 Aaron Patterson 提交于
-
由 Rafael Mendonça França 提交于
Fix some minor typos
-
由 Vipul A M 提交于
-
- 25 11月, 2013 11 次提交
-
-
由 Carlos Antonio da Silva 提交于
This reverts commit f4a5a9ea, reversing changes made to 7ccb4821. Reason: The logic is different, the first call to #option_value_selected? is for the :selected option (the argument is the "selected" variable), the second call is for the :disabled option (the argument is the "disabled" variable).
-
由 Yves Senn 提交于
avoiding calling of #option_value_selected? two times
-
由 Akshay Vishnoi 提交于
-
由 Yves Senn 提交于
`delgated` => `delegated`
-
由 Akshay Vishnoi 提交于
-
由 Yves Senn 提交于
Better error message for typos in assert_response argument.
-
由 Victor Costan 提交于
This commit makes it really easy to debug errors due to typos like "assert_response :succezz".
-
由 Yves Senn 提交于
Added `rewhere` usage to AR querying guides
-
由 Vipul A M 提交于
-
由 Carlos Antonio da Silva 提交于
Raise RuntimeErrors with inspectable and MRI-independent messages.
-
由 Xavier Noria 提交于
Conflicts: activesupport/lib/active_support/core_ext/hash/deep_merge.rb activesupport/lib/active_support/core_ext/hash/keys.rb
-