Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | we should mark strings as SQL Literal values | Aaron Patterson | 2010-08-23 | 1 | -1/+1 | |
| | ||||||
* | While creating a new record using has_many create method default scope of ↵ | Neeraj Singh | 2010-08-19 | 1 | -4/+7 | |
| | | | | | | | | | | | 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 Pastorino | 2010-08-14 | 1 | -4/+4 | |
| | | | | 's/[ \t]*$//' -i {} \;) | |||||
* | Removing most of the symbol to proc usage in Active Record | Prem Sichanugrist | 2010-08-13 | 1 | -2/+2 | |
| | | | | This will hopefully make Active Record run a bit more faster. | |||||
* | do not rely on arel class structure | Aaron Patterson | 2010-08-06 | 1 | -1/+3 | |
| | ||||||
* | updating documentation to ensure line does not exceed 100 columns | Neeraj Singh | 2010-08-02 | 1 | -6/+8 | |
| | ||||||
* | reducing function calls and using faster methods for testing | Aaron Patterson | 2010-07-30 | 1 | -7/+7 | |
| | ||||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -1/+1 | |
| | ||||||
* | adding a reader for loaded, initializing @loaded to false | Aaron Patterson | 2010-07-20 | 1 | -6/+3 | |
| | ||||||
* | enable AS::JSON.encode to encode AR::Relation by providing `as_json` method | Mislav Marohnić | 2010-07-13 | 1 | -1/+3 | |
| | | | | | | [#5073 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | fix ActiveRecord `destroy_all` so it returns destroyed records | Mislav Marohnić | 2010-07-08 | 1 | -2/+1 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Tidy up deprecation message for with_exclusive_scope. | José Valim | 2010-06-29 | 1 | -1/+1 | |
| | ||||||
* | Add scoping and unscoped as the syntax to replace the old with_scope and ↵ | José Valim | 2010-06-29 | 1 | -20/+23 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with_exclusive_scope. A few examples: * with_scope now should be scoping: Before: Comment.with_scope(:find => { :conditions => { :post_id => 1 } }) do Comment.first #=> SELECT * FROM comments WHERE post_id = 1 end After: Comment.where(:post_id => 1).scoping do Comment.first #=> SELECT * FROM comments WHERE post_id = 1 end * with_exclusive_scope now should be unscoped: class Post < ActiveRecord::Base default_scope :published => true end Post.all #=> SELECT * FROM posts WHERE published = true Before: Post.with_exclusive_scope do Post.all #=> SELECT * FROM posts end After: Post.unscoped do Post.all #=> SELECT * FROM posts end Notice you can also use unscoped without a block and it will return an anonymous scope with default_scope values: Post.unscoped.all #=> SELECT * FROM posts | |||||
* | blocks removed from all the ActiveRelation query_methods, extend method ↵ | Santiago Pastorino | 2010-06-26 | 1 | -0/+9 | |
| | | | | | | added instead Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | adding fix for to_xml for ActiveRecord relation object | Neeraj Singh | 2010-06-23 | 1 | -1/+1 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | ActiveRecord's relation object should respond to to_json and to_yaml | Neeraj Singh | 2010-06-23 | 1 | -1/+1 | |
| | | | | | | [#4547 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Adds basic description and title. | Rizwan Reza | 2010-06-16 | 1 | -2/+6 | |
| | ||||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -1/+1 | |
| | ||||||
* | ignore raw_sql_ table alias that is used by Oracle adapter | Raimonds Simanovskis | 2010-06-04 | 1 | -1/+2 | |
| | ||||||
* | downcase table names in aliased_table_name_for and ↵ | Raimonds Simanovskis | 2010-06-04 | 1 | -2/+4 | |
| | | | | references_eager_loaded_tables? methods (as Oracle quoted table names are in uppercase) | |||||
* | Make Relation#inspect less noisy | Pratik Naik | 2010-04-02 | 1 | -0/+4 | |
| | ||||||
* | Goodbye ActiveRecord::NamedScope::Scope | Pratik Naik | 2010-04-02 | 1 | -0/+11 | |
| | ||||||
* | Oops :extends is not a MULTI_VALUE_METHOD | Pratik Naik | 2010-04-02 | 1 | -1/+1 | |
| | ||||||
* | Add Relation extensions | Pratik Naik | 2010-04-02 | 1 | -2/+6 | |
| | ||||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+2 | |
| | ||||||
* | From and lock should be defined to be consistent with other ivars. Limit and ↵ | Emilio Tagua | 2010-03-22 | 1 | -5/+2 | |
| | | | | | | | | offset are always defined, no need to test that. [#4253 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | cleaning up many more warnings in activerecord [#4180 state:resolved] | Aaron Patterson | 2010-03-15 | 1 | -0/+3 | |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | |||||
* | cleaning up some test warnings | Aaron Patterson | 2010-03-14 | 1 | -0/+5 | |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | |||||
* | removing spawn from SpawnMethods | Aaron Patterson | 2010-03-10 | 1 | -0/+4 | |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | |||||
* | Move batch finders to Relation | Pratik Naik | 2010-02-12 | 1 | -1/+1 | |
| | ||||||
* | Relation should respond to class methods | Pratik Naik | 2010-01-22 | 1 | -1/+1 | |
| | ||||||
* | Allow calling class methods on a Relation | Pratik Naik | 2010-01-22 | 1 | -0/+2 | |
| | ||||||
* | Supplying Arel::SqlLiteral is much faster | Pratik Naik | 2010-01-21 | 1 | -2/+5 | |
| | ||||||
* | Use @limit_value and @offset_value instead of calling arel | Pratik Naik | 2010-01-20 | 1 | -1/+1 | |
| | ||||||
* | Move update and update_all to Relation | Pratik Naik | 2010-01-20 | 1 | -0/+64 | |
| | ||||||
* | Dont delegate Relation#update to arel | Pratik Naik | 2010-01-20 | 1 | -1/+1 | |
| | ||||||
* | Delegate delete_all to Relation | Pratik Naik | 2010-01-20 | 1 | -2/+19 | |
| | ||||||
* | Move destroy to Relation | Pratik Naik | 2010-01-20 | 1 | -0/+27 | |
| | ||||||
* | Remove Base.delete as it's same as Relation#delete | Pratik Naik | 2010-01-20 | 1 | -0/+20 | |
| | ||||||
* | Make Relation#destroy_all handle all the cases | Pratik Naik | 2010-01-20 | 1 | -3/+33 | |
| | ||||||
* | Delegate all finders to Relation | Pratik Naik | 2010-01-20 | 1 | -2/+0 | |
| | ||||||
* | Remove Relation#where_clause | Pratik Naik | 2010-01-19 | 1 | -5/+1 | |
| | ||||||
* | Give preference to to_a over arel from Relation#method_missing | Pratik Naik | 2010-01-19 | 1 | -3/+4 | |
| | ||||||
* | Rename CalculationMethods to Calculations and get rid of the old ↵ | Pratik Naik | 2010-01-19 | 1 | -1/+1 | |
| | | | | Calculations module | |||||
* | Add Relation#construct_relation_for_association_calculations for ↵ | Pratik Naik | 2010-01-19 | 1 | -4/+7 | |
| | | | | calculations with includes | |||||
* | Add Relation#find_with_associations to load relation with eager loaded ↵ | Pratik Naik | 2010-01-19 | 1 | -25/+4 | |
| | | | | associations | |||||
* | Get rid of Relation#order_clauses | Pratik Naik | 2010-01-18 | 1 | -10/+6 | |
| | ||||||
* | Inherit named scope class Scope from Relation | Pratik Naik | 2010-01-18 | 1 | -1/+3 | |
| | ||||||
* | Ensure that Scope#proxy_scope is always klass. Rename proxy_scope to klass too. | Pratik Naik | 2010-01-18 | 1 | -0/+2 | |
| | ||||||
* | Make Relation#reload force load the records immediately | Pratik Naik | 2010-01-17 | 1 | -2/+3 | |
| |