- 30 1月, 2012 2 次提交
-
-
由 Nathan Broadbent 提交于
-
由 Nathan Broadbent 提交于
-
- 29 1月, 2012 1 次提交
-
-
由 Paco Guzman 提交于
-
- 28 1月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 27 1月, 2012 2 次提交
-
-
由 Paul McMahon 提交于
Under Rails 3.1, you were allowed to pass a hash to a find_or_create method with multiple attribute names, but this was broken as the arguments were being improperly validated.
-
由 Aaron Patterson 提交于
Remove extra attributes from HABTM join tables in AR tests
-
- 26 1月, 2012 8 次提交
-
-
由 Matt Bridges 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 claudiob 提交于
-
由 Sergey Nartimov 提交于
-
由 Sergey Nartimov 提交于
-
由 Aaron Patterson 提交于
another value has been specified).
-
由 Aaron Patterson 提交于
-
- 25 1月, 2012 3 次提交
-
-
由 Paul Sadauskas 提交于
Our schema.rb is being generated with an `add_index` line similar to this: add_index "foo", ["foo", "bar"], :name => "xxx", :length => {"foo"=>8, "bar=>nil} This is the same as it was on Rails 3.1.3, however, now when that schema.rb is evaluated, its generating bad SQL in MySQL: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: CREATE UNIQUE INDEX `xxx` ON `foo` (`foo`(8), `bar`()) This commit adds a check for nil on the length attribute to prevent the empty parens from being output.
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 24 1月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Carlos Antonio da Silva 提交于
Related to #4614.
-
- 23 1月, 2012 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 22 1月, 2012 1 次提交
-
-
由 Jari Jokinen 提交于
-
- 21 1月, 2012 9 次提交
-
-
由 Akira Matsuda 提交于
-
由 Aaron Patterson 提交于
-
由 Akira Matsuda 提交于
-
由 Aaron Patterson 提交于
-
由 Aleksey Gureiev 提交于
-
由 Stephen Celis 提交于
-
由 Jon Leighton 提交于
From 2c667f69. Thanks @pwnall for the heads-up.
-
由 Aaron Patterson 提交于
This reverts commit be7d2248.
- 20 1月, 2012 5 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
too.
-
由 Aaron Patterson 提交于
-
由 Vijay Dev 提交于
Also, fixed the bit about returning AM::MissingAttributeError. This seems to be fixed earlier in 3-2-stable only.
-
- 19 1月, 2012 1 次提交
-
-
由 Olek Janiszewski 提交于
Add a `with_lock` method to ActiveRecord objects, which starts a transaction, locks the object (pessimistically) and yields to the block. The method takes one (optional) parameter and passes it to `lock!`. Before: class Order < ActiveRecord::Base def cancel! transaction do lock! # ... cancelling logic end end end After: class Order < ActiveRecord::Base def cancel! with_lock do # ... cancelling logic end end end
-
- 18 1月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 17 1月, 2012 3 次提交
-
-
由 Emmanuel Oga 提交于
E.G.: ```ruby class Parent < ActiveRecord::Base has_one :child validates_presence_of :name, :on => "custom_context" validates_associated :child end class Child < ActiveRecord::Base belongs_to :parent validates_presence_of :name, :on => "custom_context" end p = Parent.new(:name => "Montoto", :child => Child.new) p.valid?(:custom_context) # => Returns true, even though the child is not valid under the same context. ```
-
由 David Peter 提交于
If a model belongs_to two associations with the same class, then reset_counters will reset the wrong counter cache. Finding the right reflection should use the foreign_key instead, which should be unique.
-
由 Aaron Patterson 提交于
-