Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | removing calls to deprecated methods | Aaron Patterson | 2010-12-02 | 1 | -1/+2 |
| | |||||
* | refactor `self.class` to a variable | Aaron Patterson | 2010-12-02 | 1 | -1/+2 |
| | |||||
* | Partialy revert f1c13b0dd7b22b5f6289ca1a09f1d7a8c7c8584b | José Valim | 2010-11-28 | 1 | -5/+5 |
| | |||||
* | STI type is now updated when calling AR::Base.becomes on subclasses [#5953 ↵ | Franck Verrot | 2010-11-12 | 1 | -0/+1 |
| | | | | state:resolved] | ||||
* | Double negation of an already boolean value produces the same result | Santiago Pastorino | 2010-11-09 | 1 | -1/+1 |
| | |||||
* | Don't check if persisted is defined just initialize it properly | Santiago Pastorino | 2010-11-09 | 1 | -2/+0 |
| | |||||
* | use persisted? instead of new_record? wherever possible | David Chelimsky | 2010-11-09 | 1 | -5/+7 |
| | | | | | | | | | | | - 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> | ||||
* | restore behavior of touch for models without :updated_xx [#5439 state:resolved] | tnp | 2010-09-24 | 1 | -3/+2 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use map instead inject. | Emilio Tagua | 2010-09-22 | 1 | -4/+3 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | The call-seq directive has no useful effect on our documentation and is not ↵ | Joost Baaij | 2010-08-28 | 1 | -3/+0 |
| | | | | | | | | | | | used anywhere else. Worse still, its use breaks some rdoc, replacing method names with a curly brace. Having just one call-seq directive doesn't add anything since this is covered by regular rdoc. Having multiple might make sense, but these are already documented with examples. This partly re-reverts 60de0e56b7f57f0052d7e4f43bd2ef9e363c6a1a but does not touch the vendorized code in html-scanner. | ||||
* | edit pass to a recent doc patch | Xavier Noria | 2010-08-25 | 1 | -3/+10 |
| | |||||
* | Merge remote branch 'docrails/master' | Xavier Noria | 2010-08-25 | 1 | -2/+6 |
|\ | |||||
| * | touch operationg if used along with belongs_to will also be invoked on ↵ | Neeraj Singh | 2010-08-24 | 1 | -2/+6 |
| | | | | | | | | associated objects | ||||
* | | @user.touch should not fail if User does not have updated_at/updated_on column. | Neeraj Singh | 2010-08-24 | 1 | -9/+11 |
|/ | | | | | | [#5439 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make update_attribute behave as in Rails 2.3 and document the behavior ↵ | José Valim | 2010-08-12 | 1 | -33/+30 |
| | | | | intrinsic to its implementation. | ||||
* | standarizes the use of the article "an" for "SQL" and "SQLite" | Xavier Noria | 2010-08-05 | 1 | -1/+1 |
| | |||||
* | Merge remote branch 'docrails/master' into 3-0-stable | Xavier Noria | 2010-08-03 | 1 | -2/+2 |
|\ | |||||
| * | ensuring that description does not exceed 100 columns | Neeraj Singh | 2010-08-02 | 1 | -2/+2 |
| | | |||||
* | | Add an internal (private API) after_touch callback. [#5271 state:resolved] | José Valim | 2010-08-02 | 1 | -0/+13 |
|/ | |||||
* | adding punctuations | Neeraj Singh | 2010-07-28 | 1 | -4/+4 |
| | |||||
* | more documentation for update_attribute | Neeraj Singh | 2010-07-28 | 1 | -5/+6 |
| | |||||
* | adding comments to update_attribute method | Neeraj Singh | 2010-07-27 | 1 | -0/+4 |
| | |||||
* | expanded comment for update_attribute method | Neeraj Singh | 2010-07-22 | 1 | -2/+9 |
| | |||||
* | update_attribute should not update readonly attributes | Neeraj Singh | 2010-07-21 | 1 | -0/+2 |
| | | | | | | [#5106 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | revises the rdoc of update_attributes and update_attributes! to document ↵ | Xavier Noria | 2010-07-14 | 1 | -4/+9 |
| | | | | they are wrapped in a transaction, and adds code comments explaining why | ||||
* | update_attributes and update_attributes! are now wrapped in a transaction | Neeraj Singh | 2010-07-13 | 1 | -4/+8 |
| | | | | | | [#922 state:resovled] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Tidying up a bit, so update_attribute is not called twice on touch. | José Valim | 2010-07-13 | 1 | -10/+8 |
| | |||||
* | with this fix touch method - does not call validations - doest not call ↵ | Neeraj Singh | 2010-07-13 | 1 | -0/+1 |
| | | | | | | | | callbacks - updates updated_at/on along with attribute if attribute is provided - marks udpated_at/on and attribute as NOT changed [#2520 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Improve a bit the code in latest commits. | José Valim | 2010-07-08 | 1 | -7/+9 |
| | |||||
* | This patch changes update_attribute implementatino so: | Neeraj Singh | 2010-07-08 | 1 | -5/+12 |
| | | | | | | | | | | - it will only save the attribute it has been asked to save and not all dirty attributes - it does not invoke callbacks - it does change updated_at/on Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add scoping and unscoped as the syntax to replace the old with_scope and ↵ | José Valim | 2010-06-29 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Adds title and minor changes. | Rizwan Reza | 2010-06-16 | 1 | -11/+18 |
| | |||||
* | eliminate alias_method_chain from ActiveRecord | wycats | 2010-05-09 | 1 | -0/+230 |