Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove locking related unused code | Pratik Naik | 2009-12-28 | 1 | -8/+0 |
| | |||||
* | Remove unused construct_finder_sql | Pratik Naik | 2009-12-28 | 1 | -4/+0 |
| | |||||
* | Add Model.lock and relation#lock now that arel has locking | Pratik Naik | 2009-12-28 | 1 | -1/+4 |
| | |||||
* | Add Model.from and association_collection#from finder methods | Pratik Naik | 2009-12-28 | 1 | -1/+1 |
| | |||||
* | Use relation.from when constructing a relation | Pratik Naik | 2009-12-28 | 1 | -1/+1 |
| | |||||
* | Add relation.destroy_all | Pratik Naik | 2009-12-27 | 1 | -1/+1 |
| | |||||
* | Make Model.destroy_all use new finders | Pratik Naik | 2009-12-27 | 1 | -1/+1 |
| | |||||
* | Make Model.find(:last) use relations | Pratik Naik | 2009-12-27 | 1 | -42/+5 |
| | |||||
* | Make Model.all just a wrapper for find(:all) | Pratik Naik | 2009-12-27 | 1 | -9/+3 |
| | |||||
* | Make Model.find(:first, ..) use relations | Pratik Naik | 2009-12-27 | 1 | -24/+2 |
| | |||||
* | Make Model.exists? use relation.exists? | Pratik Naik | 2009-12-27 | 1 | -12/+7 |
| | |||||
* | Make Model.find(:all) use relations | Pratik Naik | 2009-12-27 | 1 | -1/+1 |
| | |||||
* | Add relation.from as a temporary workaround until arel relation has .from option | Pratik Naik | 2009-12-27 | 1 | -1/+2 |
| | |||||
* | Make Model.find(ids) use relations | Pratik Naik | 2009-12-27 | 1 | -63/+11 |
| | |||||
* | Make Model.all return an array rather than a relation for consistency. Use ↵ | Pratik Naik | 2009-12-27 | 1 | -2/+2 |
| | | | | Model.scoped to get a relation | ||||
* | Fix dynamic finder docs | Pratik Naik | 2009-12-27 | 1 | -3/+2 |
| | |||||
* | Make Model.find_or_create_by_* and find_or_initialize_by_* use relations and ↵ | Pratik Naik | 2009-12-27 | 1 | -54/+1 |
| | | | | remove method caching | ||||
* | Make Model.find_by_* and Model.find_all_by_* use relations and remove ↵ | Pratik Naik | 2009-12-27 | 1 | -54/+22 |
| | | | | dynamic method caching | ||||
* | Ensure all the finder methods respect scoping | Pratik Naik | 2009-12-26 | 1 | -1/+1 |
| | |||||
* | Rename Model.conditions and relation.conditions to .where | Pratik Naik | 2009-12-26 | 1 | -6/+6 |
| | |||||
* | Add Model.select/group/order/limit/joins/conditions/preload/eager_load class ↵ | Pratik Naik | 2009-12-26 | 1 | -6/+4 |
| | | | | | | | | | methods returning a lazy relation. Examples : posts = Post.select('id).order('name') # Returns a lazy relation posts.each {|p| puts p.id } # Fires "select id from posts order by name" | ||||
* | Replace reset_counter_cache with reset_counters that has API inline with ↵ | Gabe da Silveira | 2009-12-03 | 1 | -8/+13 |
| | | | | | | | | existing update_counters method [#1211 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Implement ActiveRecord#reset_counter_cache | Mike Breen | 2009-12-02 | 1 | -0/+18 |
| | | | | | | [#1211 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert "Split arel_table into method to get a relation and another to ↵ | Jeremy Kemper | 2009-11-13 | 1 | -6/+6 |
| | | | | | | memoize the default relation." This reverts commit bd51790895fc75a3b4e19e8dd7aa6dc389d77068. | ||||
* | Split arel_table into method to get a relation and another to memoize the ↵ | Jeremy Kemper | 2009-11-13 | 1 | -6/+6 |
| | | | | default relation. | ||||
* | Symbol#to_proc is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 1 | -1/+0 |
| | |||||
* | Move validator, human_name and human_attribute_name to ActiveModel, remove ↵ | José Valim | 2009-10-20 | 1 | -27/+5 |
| | | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | Refactoring attributes/types [#3348 state:resolved] | Eric Chapweske | 2009-10-17 | 1 | -31/+7 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Unify benchmark APIs. | José Valim | 2009-10-15 | 1 | -33/+3 |
| | |||||
* | Update Orchestra instrumentations and move part of logging to Orchestra. | José Valim | 2009-10-15 | 1 | -0/+2 |
| | |||||
* | Merge commit 'rails/master' | Emilio Tagua | 2009-10-07 | 1 | -27/+38 |
|\ | |||||
| * | Call initialize_copy when cloning [#3164 state:resolved] | Paul Gillard | 2009-10-06 | 1 | -27/+38 |
| | | | | | | | | | | | | | | | | Cloned AR objects are now instantiated through initialize_copy rather than new/initialize. This allows AR classes to override initialize_copy in order to implement deep cloning. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | | Don't send table_name when updating attributes, use the class arel_table. | Emilio Tagua | 2009-10-07 | 1 | -1/+1 |
| | | |||||
* | | Don't send table_name when there's no need to. | Emilio Tagua | 2009-10-07 | 1 | -1/+1 |
| | | |||||
* | | Initial documentation to Base#all. | Emilio Tagua | 2009-10-05 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'associations_2' | Emilio Tagua | 2009-10-05 | 1 | -4/+15 |
|\ \ | |||||
| * | | Added eager loading support to Relation and ActiveRecord#all. | Emilio Tagua | 2009-10-05 | 1 | -11/+6 |
| | | | |||||
| * | | Moved relation's test to relation_test. | Emilio Tagua | 2009-10-05 | 1 | -2/+1 |
| | | | |||||
| * | | Added association preload to relation. | Emilio Tagua | 2009-09-01 | 1 | -3/+20 |
| | | | |||||
* | | | Merge commit 'rails/master' | Emilio Tagua | 2009-09-21 | 1 | -29/+19 |
|\ \ \ | | |/ | |/| | |||||
| * | | Extract class-finder method from instantiate | Jeremy Kemper | 2009-09-17 | 1 | -27/+19 |
| | | | |||||
| * | | Collapse nested conditional | Jeremy Kemper | 2009-09-17 | 1 | -15/+13 |
| | | | |||||
* | | | Merge commit 'rails/master' | Emilio Tagua | 2009-09-08 | 1 | -8/+3 |
|\| | | |||||
| * | | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 1 | -8/+3 |
| | | | | | | | | | | | | | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | | | Merge commit 'rails/master' | Emilio Tagua | 2009-09-08 | 1 | -1/+3 |
|\| | | |/ |/| | | | | | Conflicts: activerecord/lib/active_record/associations.rb | ||||
| * | Don't try to log protected attribute removal if there's no logger defined ↵ | Jeffrey Hardy | 2009-09-02 | 1 | -1/+3 |
| | | | | | | | | | | | | [#3135 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | | Revert "Revert "Add readonly support for relations."" | Emilio Tagua | 2009-08-27 | 1 | -1/+6 |
| | | | | | | | | This reverts commit f2c0725d79e29b02e30e7a4827851acc4a766730. | ||||
* | | Revert "Add readonly support for relations." | Emilio Tagua | 2009-08-27 | 1 | -6/+1 |
| | | | | | | | | This reverts commit 7cce95b25ace33e04526d4490e487a080c1f9b96. | ||||
* | | Add readonly support for relations. | Emilio Tagua | 2009-08-27 | 1 | -1/+6 |
| | | |||||
* | | No need to reload the relation table with a method param, just nil it. | Emilio Tagua | 2009-08-27 | 1 | -5/+3 |
| | |