- 25 10月, 2014 9 次提交
-
-
由 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]
-
由 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 9 次提交
-
-
由 Jon Atack 提交于
[skip ci]
-
由 Godfrey Chan 提交于
DRY up try/try!
-
由 Guillermo Iguaran 提交于
Secure compare
-
由 Ari Pollak 提交于
-
由 Zachary Scott 提交于
-
由 Melanie Gilman 提交于
-
由 Guillermo Iguaran 提交于
-
由 Guillermo Iguaran 提交于
-
由 Guillermo Iguaran 提交于
-
- 23 10月, 2014 5 次提交
-
-
由 Yves Senn 提交于
Fix error string raised from AJ enqueue_at for ClassQueueAdapter
-
由 Yves Senn 提交于
Inline AJ around_perform and around_enqueue in CallbackJob used for tests
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
Bring try! into parity with try.
-
由 Ari Pollak 提交于
Based on commit 5e51bdda.
-
- 22 10月, 2014 4 次提交
-
-
由 Vipul A M 提交于
-
由 Rafael Mendonça França 提交于
💅 fix typos in activejob queuing test -
由 Joe Lewis 提交于
-
由 Rafael Mendonça França 提交于
fix small typo in routing test
-
- 21 10月, 2014 13 次提交
-
-
由 Accessd 提交于
-
由 Rafael Mendonça França 提交于
Fix url generation error message
-
由 Accessd 提交于
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
Provide more reasoning to not accept cosmetic changes [ci skip]
-
由 Tu Hoang 提交于
-
由 Vipul A M 提交于
-
由 Rafael Mendonça França 提交于
Activejob cleanups
-
由 Rafael Mendonça França 提交于
Remove duplicate 'select' database statement
-
由 Rafael Mendonça França 提交于
AJ doc fixes [ci skip]
-
由 Vipul A M 提交于
[ci skip]
-
由 Vipul A M 提交于
- Fix mentioned shortcut, to what the shortcut actually is, and that it accepts blocks for `assert_no_enqueued_jobs` and `assert_no_performed_jobs` test helpers. - args => arguments when used in actual docs. [ci skip]
-
由 claudiob 提交于
The `select` method has the same definition in almost all database adapters, so it can be moved from the database-specific adapters (PostgreSQl, MySQL, SQLite) to the abstract `database_statement`: ```ruby def select(sql, name = nil, binds = []) exec_query(sql, name, binds) end ``` --- More details about this commit: the only two DB-specific adapters that have a different definition of `select` are MySQLAdapter and MySQL2Adapter. In MySQLAdapter, `select` invokes `exec_query(sql, name, binds)`, so calling `super` achieves the same goal with less repetition. In MySQL2Adapter, `select` invokes `exec_query(sql, name)`, that is, it does not pass the `binds` parameter like other methods do. However, [MySQL2Adapter's `exec_query`](https://github.com/rails/rails/blob/74a527cc63ef56f3d0a42cf638299958dc7cb08c/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L228L231) works exactly the same whether this parameters is passed or not, so the output does not change: ```ruby def exec_query(sql, name = 'SQL', binds = []) result = execute(sql, name) ActiveRecord::Result.new(result.fields, result.to_a) end ```
-