- 27 10月, 2014 9 次提交
-
-
由 Dan Olson 提交于
-
由 Yves Senn 提交于
Raises ArgumentError when try to define a scope without a callable
-
由 Yves Senn 提交于
Use type column first in multi-column indexes Conflicts: activerecord/CHANGELOG.md
-
由 Rafael Mendonça França 提交于
Show the user’s application in the source window and select the correct ...
-
由 Rafael Mendonça França 提交于
For the most part of cases --skip-gems option just remove one line in the Gemfile. This is not worth for the complexity it adds. Closes #17196
-
由 Matthew Draper 提交于
Fix Relation#rewhere to work with Range values
-
由 Rafael Mendonça França 提交于
Fix typo in error message when non-boolean value is assigned to boolean column
-
由 Zachary Scott 提交于
-
由 Rishi Jain 提交于
-
- 26 10月, 2014 10 次提交
-
-
由 Prathamesh Sonpatki 提交于
-
由 Rafael Mendonça França 提交于
This will avoid naming clash with user defined methods
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Use include_blank value as option label
-
由 Rafael Mendonça França 提交于
Clarify comments about sanitized_allowed_tags
-
由 Eileen M. Uchitelle 提交于
Fix description of OID in TypeMapInitializer
-
由 Prathamesh Sonpatki 提交于
- Clarify that arguments are expected in array format. - Extension of https://github.com/rails/rails/pull/17390. - https://github.com/rails/rails/pull/17390 was targeted against 4-1-stable branch. This commit updates master. - [ci skip]
-
由 Prathamesh Sonpatki 提交于
[ci skip]
-
- 25 10月, 2014 15 次提交
-
-
由 Xavier Noria 提交于
See comment in this patch for the rationale. References #16468
-
由 Xavier Noria 提交于
The check for circular loading should depend on a stack of files being loaded at the moment, rather than the collection of loaded files. This showed up indirectly in #16468, where a misspelled helper would incorrectly result in a circularity error message. References #16468
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Zachary Scott 提交于
Fix typo in "Active Record Basics" guide. [ci skip]
-
由 nakadai 提交于
-
由 Godfrey Chan 提交于
@carlosantoniodasilva pointed out that when `@person` is nil then this would blow up when you ended up calling `#first`on `nil`. > "there’s no way to break a try chain when you enter it :D" [ci skip]
-
由 Derek Prior 提交于
`add_reference` can very helpfully add a multi-column index when you use it to add a polymorphic reference. However, the first column in the index is the `id` column, which is less than ideal. The [PostgreSQL docs][1] say: > A multicolumn B-tree index can be used with query conditions that > involve any subset of the index's columns, but the index is most > efficient when there are constraints on the leading (leftmost) > columns. The [MySQL docs][2] say: > MySQL can use multiple-column indexes for queries that test all the > columns in the index, or queries that test just the first column, the > first two columns, the first three columns, and so on. If you specify > the columns in the right order in the index definition, a single > composite index can speed up several kinds of queries on the same > table. In a polymorphic relationship, the type column is much more likely to be useful as the first column in an index than the id column. That is, I'm more likely to query on type without an id than I am to query on id without a type. [1]: http://www.postgresql.org/docs/9.3/static/indexes-multicolumn.html [2]: http://dev.mysql.com/doc/refman/5.0/en/multiple-column-indexes.html
-
由 Zachary Scott 提交于
-
由 Eugene Gilburg 提交于
- better `if` example - Added chaining example to the try method description - Documented the `respond_to?` check to the try method description - Clearer wording to explain that argument error is raised on argument mismatch to responding method, rather than to non-responding method (which is handled without exception by `try`) - `.any?` is more precise than `! .blank?` - Don't need to use `try` on `children` as (for regular associations) they will always be a collection or array that responds to `first` - Fix typos/grammar
-
由 Santiago Pastorino 提交于
AR Migrations Guide#Foreign Keys: fix wrong table
-
- 24 10月, 2014 6 次提交
-
-
由 Jon Atack 提交于
[skip ci]
-
由 Godfrey Chan 提交于
DRY up try/try!
-
由 Guillermo Iguaran 提交于
Secure compare
-
由 Ari Pollak 提交于
-
由 Mauro George 提交于
This changes the actual exception `NoMethodError: undefined method `call' for #<ActiveRecord::Relation []>` to a `ArgumentError` when try to define a scope without a callable.
-
由 Zachary Scott 提交于
-