I don't see why that's true. It would be simple enough to use a proper OO
solution, such as writing a class that has the same interface as an Array
but tracks changes, or to extend Array instances with a module that does
the same.
On Mar 14, 2014 9:10 AM, "Jan Brdo" <mrb...@gmail.com> wrote:

> That would mean monkey-patching the Array instance that is returned or
> wrapping it (and also doing that if something new is assigned). I'm not
> against it, but I think the general consensus is to avoid stuff like that
> in core Rails.
>
> On Friday, 14 March 2014 14:07:46 UTC+1, Josh Jordan wrote:
>>
>> If that is true, the solution would be to properly mark the object as
>> dirty when the array changes, not freeze the array. Why should this data
>> type behave differently than all the others?
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/rubyonrails-talk/fnpTlBZ-lD4/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/4bd3927b-e335-4b5c-b631-80f7e21cee0e%40googlegroups.com<https://groups.google.com/d/msgid/rubyonrails-talk/4bd3927b-e335-4b5c-b631-80f7e21cee0e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BSXTRhj5e%3DpOZ3HCBZX_CgmTa4y5hUkE8AGFw6T5TKk%3DzEKdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to