Thanks for checking this out man.
However now the casting is f'd up. I haven't looked at it thoroughly
enough yet, but I do know if you add this test to QueryCacheTest it
doesn't work:
def test_type_cast
Task.cache do
assert Task.count.is_a?(Integer)
end
end
NoMethodError: undefined method `to_i' for ["2"]:Array
./test/../../../../config/../vendor/rails/activerecord/lib/
active_record/calculations.rb:263:in `type_cast_calculated_value'
./test/../../../../config/../vendor/rails/activerecord/lib/
active_record/calculations.rb:213:in `execute_simple_calculation'
./test/../../../../config/../vendor/rails/activerecord/lib/
active_record/calculations.rb:121:in `calculate'
./test/../../../../config/../vendor/rails/activerecord/lib/
active_record/calculations.rb:117:in `calculate'
./test/../../../../config/../vendor/rails/activerecord/lib/
active_record/calculations.rb:45:in `count'
./test/query_cache_test.rb:81:in `test_type_cast'
On Jul 24, 10:49 pm, "Rick Olson" <[EMAIL PROTECTED]> wrote:
> > Please open up a ticket with the failing test patch. I don't think
> > modifying #write_attribute is the way to go though.
>
> Er, nevermind:http://dev.rubyonrails.org/changeset/7238
>
> Had a little Dr. House moment :)
>
> --
> Rick
> Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephistoblog.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---