[Rails-core] Observers setup a core convention

2012-07-09 Thread daniel2d2art
Hi guys! I want to propose the debate to setup the *RoR convention* for *Observers*organization. I search in the forum and found some posts about where put observers, but no "convention" results "as core" on "*convention over configuration*" paradigm. Observers for model, sweepers, mailers

[Rails-core] Re: Scopes with OR and AND optional chainity discussion

2012-06-22 Thread daniel2d2art
; > On 22 Jun 2012, at 17:05, daniel2d2art wrote: > > > > > > > > > We're following to using disjunction on two or more chained scopes. > > This scopes can continue use custom logical conditions. Normal would > > be to use parentheses between on query. &g

[Rails-core] Re: Scopes with OR and AND optional chainity discussion

2012-06-22 Thread daniel2d2art
b.com/rails/rails/pull/6817 > > On 21 June 2012 18:35, daniel2d2art wrote: > > > > > > > > > Yes I think some chainity_operator method like you say, can works ok too. > > > On Thursday, June 21, 2012 5:27:51 PM UTC+2, mrloz wrote: > > >> We have wa

[Rails-core] Re: Scopes with OR and AND optional chainity discussion

2012-06-22 Thread daniel2d2art
> wrote: > > Wow yep! I'hope this prosperes ... I'm not sure next step for consolidation > > on RoR version. > > Thanks Loz > > > 2012/6/21 Jonathan Lozinski > > >> I have raised a pull request which gets this started, though there's > >&g

Re: [Rails-core] Scopes with OR and AND optional chainity discussion

2012-06-21 Thread daniel2d2art
> MyModel.somescope.or(something_which_is_a_scope_chain_too) > > > > Sent from my iPhone > > On 21 Jun 2012, at 15:57, daniel2d2art wrote: > > Hi guys, I'want to introduce this discussion (I'm looking for similar > here, but don't found it) > > Actually the scopes cha

[Rails-core] Scopes with OR and AND optional chainity discussion

2012-06-21 Thread daniel2d2art
Hi guys, I'want to introduce this discussion (I'm looking for similar here, but don't found it) Actually the scopes chainity is glued with "AND" operator. Some times we need to chain the same scope implemented method using both "OR" or cases with "AND" operators. But It's not possible because

[Rails-core] Scopes with OR and AND optional chainity discussion

2012-06-21 Thread daniel2d2art
Hi guys, I'want to introduce this discussion (I'm looking for similar here, but don't found it) Actually the scopes chainity is glued with "AND" operator. Some times we need to chain the same scope implemented method using both "OR" or cases with "AND" operators. But It's not possible because