For purposes of maintenance and data cleanup, sometimes it is helpful to
determine if you have orphaned records in your AR backing store.
Assuming that an AR::Base descendant has one or more belongs_to
associations, I propose the addition of built-in
"_orphaned" scopes that would return the set
t left to
> the author.
>
> -Ben
>
>
> On Mon, Apr 8, 2013 at 2:57 PM, Wes Gamble >wrote:
>
>> For purposes of maintenance and data cleanup, sometimes it is helpful to
>> determine if you have orphaned records in your AR backing store.
>>
>> As
This would only be good for simple validation requirements. If there
were an :if or :unless parameteron a given validation, for example, that
would look kind of ugly in the one line version.
Wes
On 4/11/13 8:59 AM, Roman wrote:
Hi,
What do you think about the following way to specify validati