- 24 4月, 2014 1 次提交
-
-
由 Lucas Mazza 提交于
Closes #14841.
-
- 22 4月, 2014 1 次提交
-
-
由 Earl J St Sauver 提交于
Fixes #14752 Select mimics the block interface of arrays, but does not mock the block interface for select!. This change moves the api to be a private method, _select!.
-
- 19 4月, 2014 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
- 18 4月, 2014 3 次提交
-
-
由 Javier Goizueta 提交于
So that irregular multi-word pluralization rules have to be defined only for snake-case strings.
-
由 Kris Selden 提交于
Optimize select_value, select_values, select_rows and dry up checking whether to exec with cache for Postgresql adapter Reduces creating unused objects, with the most dramatic reduction in select_values which used to map(&:first) an array of single element arrays.
-
由 Arthur Neves 提交于
-
- 16 4月, 2014 8 次提交
-
-
由 Eric Chahin 提交于
Changed the NullRelation so that when count is called with #group it will properly return an empty hash instead of zero. Fixes issue #14721 Conflicts: activerecord/CHANGELOG.md
-
由 Rob Gilson 提交于
Closes #14222. This is a follow up to #6104 This does not have the backwards compatibility issues brought up in implementation to break.
-
由 Eric Chahin 提交于
Changed change_column in PG schema_statements.rb to make sure that the uuid_generate function was not being quoted.
-
由 Jean Boussier 提交于
-
由 Jean Boussier 提交于
-
由 Jean Boussier 提交于
-
由 schneems 提交于
`reaping_frequency` is used in Active Record `reap_frequency` is not
- 15 4月, 2014 5 次提交
-
-
由 Robin Tweedie 提交于
rather than YAML.load(File.read(path)). YAML.load_file is also used in guides/rails_guides/helper.rb since 2011, the only other precedent I could find.
-
由 Lauro Caetano 提交于
968c581e have fixed the EagerLoadTest, but not in the correct way. The problem was when `empty?` or `size` was called on relation. It was triggering `count(:all)`, which was passing `:all` as the column name to `count` on Calculations. On the other hand, the method `calculate` on Calculations was calling `construct_relation_for_association_calculations` instead of `perform_calculation`, because `has_include?` was returning `true` since `column_name` was present. To prevent calling the wrong method to perform the calculation, we have to check if the `column_name` is present and if it is different from `:all` (which is now used to correctly do `count` with `select`). More information here: https://github.com/rails/rails/commit/968c581ea34b5236af14805e6a77913b1cb36238#commitcomment-6006135
-
由 Lauro Caetano 提交于
968c581e have introduced this bug #14744 on Association Relation when the method `empty?` or `size` was called. Example: # Given an author that does have 3 posts, but none of them with the # title 'Some Title' Author.last.posts.where(title: 'Some Title').size # => 3 It was occurring, because the Association Relation had implemented these methods based on `@association`, this way giving wrong results. To fix it, was necessary to remove the methods `empty?` and `size` from Association Relation. It just have to use these methods from Relation. Example: # Given an author that does have 3 posts, but none of them with the # title 'Some Title' Author.last.posts.where(title: 'Some Title').size # => 0 # Now it will return the correct value. Fixes #14744.
-
由 Jean Boussier 提交于
-
由 Jean Boussier 提交于
-
- 14 4月, 2014 4 次提交
-
-
由 Yves Senn 提交于
The second argument to serialize has double meaning: * `class_name` of the Type to serialize * `coder` to use then serializing. The new variable name and the docs better describe that behavior.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Jean Boussier 提交于
-
- 13 4月, 2014 4 次提交
-
-
由 Akshay Vishnoi 提交于
-
由 Aaron Patterson 提交于
we're guaranteed to pass a numeric value for offset, so if it's zero, just don't add an offset to the query
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 12 4月, 2014 5 次提交
-
-
由 Lauro Caetano 提交于
consistent.
-
由 Aaron Patterson 提交于
-
由 Lauro Caetano 提交于
Example: author.posts == Post.where(author_id: author.id) # => true Post.where(author_id: author.id) == author.posts # => true Fixes #13506
-
由 Rafael Mendonça França 提交于
-
由 Simon Woker 提交于
-
- 11 4月, 2014 5 次提交
-
-
由 Yves Senn 提交于
[Yves Senn & Matthew Draper]
-
由 Yves Senn 提交于
[Yves Senn & Matthew Draper]
-
由 Yves Senn 提交于
[ci skip] The examples are written in a way you expect them to be executable. However one snippet assumed there to be two comments when only one was created above. The defined models did not extend `ActiveRecord::Base` The example used `comments.last.mark_for_destruction`. This does no longer load the whole collection but just the last record. It is then refetcht on subsequent calls to `last`. This breaks the example.
-
由 Rafael Mendonça França 提交于
-
由 Simon Woker 提交于
-
- 10 4月, 2014 3 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Lauro Caetano 提交于
-