aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Collapse)AuthorAgeFilesLines
* JoinBase initialize can be deletedAaron Patterson2010-11-302-10/+3
|
* removing interpolate_sql from join associationsAaron Patterson2010-11-291-5/+1
|
* moving method to subclass that actually uses the methodAaron Patterson2010-11-292-1/+5
|
* Partialy revert f1c13b0dd7b22b5f6289ca1a09f1d7a8c7c8584bJosé Valim2010-11-286-18/+18
|
* nil check unneeded ht. exvivaSantiago Pastorino2010-11-251-1/+1
|
* Remove explicit return.Emilio Tagua2010-11-251-2/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Use ternary instead explicit return.Emilio Tagua2010-11-251-2/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove return, we are already returning self.Emilio Tagua2010-11-251-6/+6
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* alias should be a SQL literalAaron Patterson2010-11-241-1/+1
|
* initialize instance variables in initialize... o_OAaron Patterson2010-11-241-2/+2
|
* adding a factory method to the join part for generating a table aliasAaron Patterson2010-11-242-1/+5
|
* use ARel rather than generate SQL stringsAaron Patterson2010-11-241-2/+3
|
* remove useless joinAaron Patterson2010-11-241-1/+1
|
* moving column_aliases to JoinDependencyAaron Patterson2010-11-241-0/+8
|
* reduce method callsAaron Patterson2010-11-241-1/+1
|
* removing ternaryAaron Patterson2010-11-231-1/+1
|
* breaking classes up in to respective filesAaron Patterson2010-11-234-0/+604
|
* Refactor && simplify count_records.Emilio Tagua2010-11-231-5/+1
|
* Remove explicit return and avoid creating local var.Emilio Tagua2010-11-241-2/+1
|
* Remove explicit return.Emilio Tagua2010-11-241-1/+1
|
* removing space errorAaron Patterson2010-11-221-1/+1
|
* removing unused variablesAaron Patterson2010-11-221-2/+2
|
* class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-201-1/+1
| | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* super automatically passes on the implicit blockAaron Patterson2010-11-161-5/+1
|
* use unless instead of if !Aaron Patterson2010-11-161-1/+1
|
* removing space errorsAaron Patterson2010-11-162-5/+5
|
* reloading an association will properly set attributes of instantiated ↵Aaron Patterson2010-11-161-1/+3
| | | | objects. Thanks Brian Palmer [#5802 state:resolved]
* refactoring uniq methodAaron Patterson2010-11-161-7/+4
|
* if association is already loaded and if a find operation is performed on the ↵Neeraj Singh2010-11-151-1/+2
| | | | | | already loaded association list with an empty hash then do not perform another sql [#5972 state:resolved]
* Remove unused varSantiago Pastorino2010-11-141-1/+1
|
* Fix bug where size of through association is not correct after adding a ↵Jason Cheow2010-11-141-1/+0
| | | | | | | | has_many association (occurs only before main object has been reloaded). [#5968 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Execute less operationsSantiago Pastorino2010-11-091-2/+1
|
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-097-25/+26
| | | | | | | | | | | - persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Association Proxy should not undefine the default respond_to_missingsblackstone2010-11-041-1/+1
|
* Refactoring: replace the mix of variables like @finder_sql, @counter_sql, ↵Jon Leighton2010-10-3010-157/+144
| | | | etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly.
* Refactor AssociationCollection#include? with objects in memoryCarlos Antonio da Silva2010-10-021-4/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* AssociationCollection#include? working properly for objects added with build ↵Marcelo Giorgi2010-09-301-0/+13
| | | | method [#3472 state:resolved]
* no need of nil checkNeeraj Singh2010-09-291-1/+1
|
* Refactor association_collection uniq method.Emilio Tagua2010-09-221-4/+3
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Perf: refactor method.Emilio Tagua2010-09-221-11/+8
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* do not pass nil values to arelAaron Patterson2010-09-211-1/+1
|
* Use scoped here to get the scoped whereSantiago Pastorino2010-09-051-5/+3
|
* mark SQL literals as SQL literalsAaron Patterson2010-08-251-1/+1
|
* marking sql literals as sql literalsAaron Patterson2010-08-231-1/+1
|
* While creating a new record using has_many create method default scope of ↵Neeraj Singh2010-08-191-1/+6
| | | | | | | | | | | child should be respected. author.posts.create should take into account default_scope defined on post. [#3939: state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-143-10/+10
| | | | 's/[ \t]*$//' -i {} \;)
* Removing most of the symbol to proc usage in Active RecordPrem Sichanugrist2010-08-131-1/+1
| | | | This will hopefully make Active Record run a bit more faster.
* removing references to arel constantsAaron Patterson2010-08-131-1/+1
|
* avoiding symbol to proc againAaron Patterson2010-08-131-1/+1
|
* do not use arel constants directlyAaron Patterson2010-08-131-1/+1
|