- 22 5月, 2012 3 次提交
-
-
由 Andrey Voronkov 提交于
In order to make migration from 3.x apps easier, we should try to convert Hash instances to HashWithIndifferentAccess, to allow accessing values with both symbol and a string. This is follow up to changes in 3c0bf043.
-
由 Godfrey Chan 提交于
Currently, when saving a frozen record, an exception would be thrown which causes a rollback. However, there is a bug in active record that "defrost" the record as a side effect: >> t = Topic.new => #<Topic id: nil, ...> >> t.freeze => #<Topic id: nil, ...> >> t.save RuntimeError: can't modify a frozen Hash >> t.frozen? => false >> t.save => true This patch fixes the bug by explictly restoring the frozen state on the attributes Hash after every rollback.
-
由 Carlos Antonio da Silva 提交于
Only constantize class_name once.
-
- 21 5月, 2012 1 次提交
-
-
由 Patrick Mahoney 提交于
-
- 20 5月, 2012 2 次提交
-
-
由 Patrick Mahoney 提交于
-
由 kennyj 提交于
-
- 19 5月, 2012 17 次提交
-
-
由 Vijay Dev 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Piotr Sarnacki 提交于
The fix commited in e2a070cf was returning the `new_target`, as a try to return whatever user replaced association with. The problem is, the resulting association target may be ordered differently. In such case we want to return the target that will be later used for that association.
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Jamie Gaskins 提交于
-
由 Avi Tzurel 提交于
-
由 Francesco Rodriguez 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Francesco Rodriguez 提交于
-
由 Jon Leighton 提交于
Bug #6289
-
- 18 5月, 2012 12 次提交
-
-
由 Peter Suschlik 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
- 17 5月, 2012 5 次提交
-
-
由 Johannes Barre 提交于
-
由 Piotr Sarnacki 提交于
-
由 Radoslav Stankov 提交于
Record.from("(#{sub_query.to_sql})") -> Record.from(sub_query) Record.from("(#{sub_query.to_sql}) a") -> Record.from(sub_query, :a)
-
由 John Firebaugh 提交于
Now that migrations support instance methods, we should use the same instance rather than relying on delegation to a global instance. This allows subclassing AR::Schema.
-