- 03 5月, 2012 1 次提交
-
-
由 Yves Senn 提交于
This makes it possible to filter invalid input values before they are passed into the value-object (like empty strings). This behaviour is only relevant if the :allow_nil options is set to true. Otherwise you will get the resulting NoMethodError.
-
- 20 5月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Implement proxy_owner, proxy_target and proxy_reflection methods on CollectionProxy with deprecations. Fixes #1148.
-
- 18 5月, 2011 2 次提交
-
-
由 Andrew White 提交于
-
由 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 1 次提交
-
-
由 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 2 次提交
-
-
由 Guillermo Iguaran 提交于
-
由 Jon Leighton 提交于
CollectionAssociation#merge_target_lists should write to the underlying attributes when copying, rather than using the assignment method
-
- 14 5月, 2011 1 次提交
-
-
由 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 11 次提交
-
-
由 knapo 提交于
-
由 Andrew White 提交于
-
由 Michael Ebens 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 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 提交于
-
由 Vishnu Atrai 提交于
-
由 Aaron Patterson 提交于
-
由 Vishnu Atrai 提交于
-
由 Joshua Wehner 提交于
-
- 10 5月, 2011 5 次提交
-
-
由 slainer68 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 José Valim 提交于
-
由 Aaron Patterson 提交于
-
- 09 5月, 2011 3 次提交
-
-
由 Nick Howard 提交于
if a query contains a limit or an offset, ActiveRecord::FinderMethods#find_last had inconsistent behavior. If the records were loaded, it returned the last record in the cached list. If they were not, it reversed the order of the query and changed the limit to one. If the earlier limit was less than the total matching the query in the db, it would return a different record than if the records had been cached. This commit changes find_last so that it loads the records when getting the last record on a query containing a limit or an offset, which makes the behavior consistent.
-
由 Jon Leighton 提交于
Ensure that ORDER BY clauses from default scopes are not included in calculation queries. Fixes #406.
-
由 Christopher Meiklejohn 提交于
-
- 08 5月, 2011 2 次提交
-
-
由 Josh Kalderimis 提交于
-
由 Jason Noble 提交于
[Fixes #439]
-
- 07 5月, 2011 4 次提交
-
-
由 José Valim 提交于
This reverts commit 886818d2.
-
由 Hemant Kumar 提交于
-
由 José Valim 提交于
Revert "Merge pull request #423 from richardiux/master" This reverts commit b8f08c4e, reversing changes made to fd9df1b1.
-
由 Richard Millan 提交于
Adding base method symbolized_sti_name to activerecord base to be used on identity map. Identity map now considers the inheritance when creating the caching keys
-
- 06 5月, 2011 1 次提交
-
-
由 Ernie Miller 提交于
-