In Rails 1.2, the interface to InstanceTag#value and
#value_before_type_cast changed, and looking through the svn
and Trac
history, I can't see why. It appears that every call to
#value now
passes the same argument (the result of the #object method),
which
just duplicates what the function did before it took an
argument.
The reason I bring this up is that the change breaks some of
our code,
which we would at least temporarily like to have run under
both 1.1.x
and 1.2.x Rails. I'm wondering if anyone on the list knows
if there
was a reason for interface change (it was in r4272, and the
associated
ticket is #4800).
I'm proposing that either the interface be reverted, if it
doesn't
affect anything, or else that the object argument be
optional, with
the default being the result of the #object method. I would
be happy
to submit a patch for either, once I know what is most
appropriate.
Cheers,
-- Michael
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-core googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---
|