- 18 5月, 2011 1 次提交
-
-
由 Andrew White 提交于
The build_association method was added as an API for plugins to hook into in 1398db01. This commit restores this API and the ability to override class.new to return a subclass based on a virtual attribute in the attributes hash.
-
- 17 5月, 2011 2 次提交
-
-
由 Arun Agrawal 提交于
-
由 Guillermo Iguaran 提交于
-
- 16 5月, 2011 2 次提交
-
-
由 Sebastian Martinez 提交于
-
由 Prem Sichanugrist 提交于
Add ActiveRecord::attribute_names to retrieve a list of attribute names. This method will also return an empty array on an abstract class or a model that the table doesn't exists.
-
- 15 5月, 2011 4 次提交
-
-
由 Guillermo Iguaran 提交于
-
由 Jon Leighton 提交于
* It is not necessary to subtract 'id' from the list of copied attributes because record and mem_record are equal, so therefore their id attributes are also equal (so there is no harm in copying it, and this reduces the complexity of the code) * It is not necessary to intersect the attribute names, since record and mem_record are equal, so they have the same id and class, so they have the same columns in the database. If record has non-column attributes then it seems reasonable to also copy them onto mem_record (though I am not sure what situation this would ever happen in)
-
由 Jon Leighton 提交于
CollectionAssociation#merge_target_lists should write to the underlying attributes when copying, rather than using the assignment method
-
由 Jon Leighton 提交于
-
- 14 5月, 2011 6 次提交
-
-
由 José Valim 提交于
-
由 Tom Ward 提交于
Previously the runtime was reset implicitly when #cleanup_view_runtime was called at the end of most requests. However, this doesn't happen when the request redirects, or send_file is called. Consequently, the ActiveRecord runtime recorded in the logs included the time taken for both the current request and the previous redirect. Explicitly resetting at the start of each request ensures that this can't happen, no matter what occurs previously.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Remove pointless rescue (it doesn't happen anywhere in the tests, and I can't see a way that it would happen ever)
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 13 5月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Don't use mass-assignment protection when setting foreign keys or association conditions on singular associations. Fixes #481 (again).
-
- 12 5月, 2011 3 次提交
-
-
由 Josh Kalderimis 提交于
updated AR#create! to accept an options hash so the mass-assignment security role can be passed in, also updated the Changelog to mention the change to some of the AR method signatures.
-
- If doing a count on a relation that has an :include and a :join, it does a distinct even though it should not. - When doing a count on a relation that has an :include, it always falls back to a old style left join when performing the count. Looks like it was broken here: https://github.com/rails/rails/commit/b9599502c9e738a5a1513e75d08f8d40ed408265
-
由 Santiago Pastorino 提交于
-
- 11 5月, 2011 17 次提交
-
-
由 knapo 提交于
-
由 Andrew White 提交于
-
由 Michael Ebens 提交于
-
由 Michael Ebens 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Corin Langosch 提交于
-
由 Jon Leighton 提交于
Add test to specify that attributes from an association's conditions should be assigned without mass-assignment protection when a record is built on the association.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Vishnu Atrai 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Vishnu Atrai 提交于
-
由 Guillermo Iguaran 提交于
-
由 Arun Agrawal 提交于
-
由 Joshua Wehner 提交于
-
- 10 5月, 2011 4 次提交
-
-
由 slainer68 提交于
-
由 Vijay Dev 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-