Yes, it exists in belongs_to already.

It doesn't exists in has_one.

I added the option to has_many because I really needed it, I prefer to add
functionalities on demand.

If you think it will be useful to implement the option in has_one and
has_and_belongs_to_many associations, I can do it without problems :)



On Sat, Apr 17, 2010 at 6:04 PM, Joe Smith <[email protected]>wrote:

>
> "Diego Carrion" <[email protected]> wrote in message
> news:[email protected]...
>
> Hi,
>
>  it would be nice to have the touch option in has_many associations also.
>>
>
> It exists in belongs_to already, right?
>
> Does it also already exist in has_one? If not it would be odd to have it in
> has_many but not in has_one.
>
> If has_many has :touch, then has_and_belongs_to_many should also get :touch
> too, no? There it is thankfully equivlent if you thing of this thouch as
> belonging to either the has_ or belongs_ side of said relationship.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-core%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-core?hl=en.
>
>


-- 
Diego Carrion
http://www.diegocarrion.com
http://www.mouseoverstudio.com/blog/
http://www.twitter.com/dcrec1
http://www.workingwithrails.com/person/13580-diego-carrion

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to