| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\ |
|
| | |
|
| |\ |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
belongs_to
[#4984 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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>
|
| | |
| | |
| | |
| | | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
:conditions. [#2362 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
examining the length of an array which contains false/true, hence always passing. [#4869 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
[#5066 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
belongs) [#5071 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
| | |
| | |
| | |
| | | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
rails standards
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
was created this test has name not beginning with test_. Also this
test is trying to use has_many on another has_many which is not
supported.
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Xavier Noria <fxn@hashref.com>
|
| |/
|/|
| |
| | |
Signed-off-by: wycats <wycats@gmail.com>
|
|\| |
|
| | |
|
| | |
|
| |
| |
| |
| | |
particular the gotcha that deletion is direct
|
| |
| |
| |
| |
| |
| | |
The former should be symmetric with ancestors and include all children. However, it should not include self since ancestors + descendants should not have duplicated. The latter is symmetric to superclass in the sense it only includes direct children.
By adopting a convention, we expect to have less conflict with other frameworks, as Datamapper. For this moment, to ensure ActiveModel::Validations can be used with Datamapper, we should always call ActiveSupport::DescendantsTracker.descendants(self) internally instead of self.descendants avoiding conflicts.
|
| |
| |
| |
| | |
Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
|
| |
| |
| |
| |
| |
| | |
state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
|/ |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
[#1108 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
| |
| |
| |
| |
| |
| | |
state:committed]
Signed-off-by: Xavier Noria <fxn@hashref.com>
|
| |
| |
| |
| |
| |
| | |
[#4809 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| |
| |
| |
| |
| |
| | |
reserved word, with test.
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| |
| |
| |
| | |
2.3) [#4994 state:resolved] and [#5003 state:resolved]
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: José Valim <jose.valim@gmail.com>
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
nicely if hash is passed. Blow up if user is attempting it pass ARel to with_exclusive_scope.
[#3838 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
|