- 22 8月, 2014 1 次提交
-
-
由 Tom Kadwill 提交于
-
- 21 8月, 2014 4 次提交
-
-
由 Akira Matsuda 提交于
-
由 Aditya Kapoor 提交于
-
由 Aditya Kapoor 提交于
-
由 Tom Kadwill 提交于
-
- 20 8月, 2014 6 次提交
-
-
由 Akira Matsuda 提交于
-
由 Zachary Scott 提交于
-
由 Akira Matsuda 提交于
-
由 Agis- 提交于
with dynamic conditions. Fixes #16128 This bug was introduced in https://github.com/rails/rails/commit/c35e438620f2d56562251571377995359546393d so it's present from 4.1.2-rc1 and after. https://github.com/rails/rails/commit/c35e438620f2d56562251571377995359546393d merges any relation scopes passed as proc objects to the relation, but does *not* take into account the arity of the lambda. To reproduce: https://gist.github.com/Agis-/5f1f0d664d2cd08dfb9b
-
由 Tom Kadwill 提交于
-
由 Arthur Neves 提交于
`strip_heredoc` method is defined on active_support/core_ext/string
-
- 19 8月, 2014 7 次提交
-
-
由 yuuji.yaginuma 提交于
[ci skip] config.active_record.errors_in_transactional_callbacks -> config.active_record.raise_in_transactional_callbacks
-
由 Rafael Mendonça França 提交于
Make sure :checkout_timeout and :dead_connection_timeout are numbers Conflicts: activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
-
由 eileencodes 提交于
The instance var is already saved as a string in the initialization method of AssociationReflection. See https://github.com/rails/rails/blob/master/activerecord/lib/active_record/reflection.rb#L273
-
由 Arthur Neves 提交于
-
由 Kassio Borges 提交于
Fixes #15821.
-
由 Arthur Neves 提交于
Currently, Active Record will rescue any errors raised within after_rollback/after_create callbacks and print them to the logs. Next versions of rails will not rescue those errors anymore, and just bubble them up, as the other callbacks. This adds a opt-in flag to enable that behaviour, of not rescuing the errors. Example: # For not swallow errors in after_commit/after_rollback config.active_record.errors_in_transactional_callbacks = true [fixes #13460]
-
由 Rafael Mendonça França 提交于
If the request parameters are passed to create_with and where they can be used to do mass assignment when used in combination with Relation#create. Fixes CVE-2014-3514 Conflicts: activerecord/lib/active_record/relation/query_methods.rb
-
- 18 8月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 17 8月, 2014 3 次提交
-
-
由 Jean Boussier 提交于
Post.where(id: [[]]).to_a Used to fail with a SQL syntax error (until 4.1): SELECT ... WHERE id in (); It now properly generate: SELECT ... WHERE 1=0;
-
由 Godfrey Chan 提交于
WARNING: don't use them! They might change or go away between future beta/RC/ patch releases! Also added a CHANGELOG entry for this.
-
由 Sean Griffin 提交于
-
- 16 8月, 2014 3 次提交
-
-
由 Arthur Neves 提交于
after_commit should not run in nested transactions, however they should run once the outermost transaction gets committed. This patch fixes the problem copying the records from the Savepoint to its parent. So the RealTransaction will have all records that needs to run callbacks on it. [fixes #16425]
-
由 Arthur Neves 提交于
Use `commit_transaction`/`rollback_transaction` on `within_new_transaction` method, so they make sure they `pop` the transaction from the stack before calling the methods `commit`/`rollback`.
-
由 Sean Griffin 提交于
This was a small self contained piece of the refactoring that I am working on, which required these objects to be comparable.
-
- 15 8月, 2014 7 次提交
-
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
Follow up to the discussion on #16505.
-
由 Sean Griffin 提交于
I've been trying to reduce the number of places that care about `attributes`, and its existence. We have a method for this check, let's use it instead.
-
由 Akira Matsuda 提交于
-
由 jbsmith86 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
- 14 8月, 2014 8 次提交
-
-
由 Zachary Scott 提交于
-
由 Akira Matsuda 提交于
Looks like #first wasn't warm enough...
-
由 Bogdan Gusiev 提交于
Example: Author.where(posts: { author_id: Author.where(country_id: 1) }).joins(:posts)
-
由 Akira Matsuda 提交于
-
由 Tom Kadwill 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
Or some tests fail when run in random order
-