Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Ken Collins's latest activity

Wednesday, February 09 2011
6400 Allow ARel SQL Literal Nodes For Limit was created in Ruby on Rails
  • Ken Collins
    Ken Collins created the ticket at 4:17 PM

    The v3.0.4 limit regression and security fix here [1] should allow for ARel's SQL literal values to pass thru sanitization intact. This patch just adds a few li...

Thursday, February 03 2011
6365 The type_cast_calculated_value method will trust DB types before casting Floa... was updated in Ruby on Rails
  • Ken Collins
    Ken Collins commented at 9:35 PM

    FYI, this test is below mine and is even visible in the patch. It outlines the nil question of yours.

    def test_should_return_nil_as_average
      assert_nil Numeri...
  • Ken Collins
    Ken Collins commented at 9:12 PM

    I had a test that directly tested the method but that it would have been discouraged. It looked something like this.

    expected_value = 3
    column = Account.column...
  • Ken Collins
    Ken Collins commented at 8:15 PM

    OK, uploaded a new patch. Test added, used the respond_to? method. All tests passed in mysql/postgresql/sqlite.

    Also, will this make it into the v3.0.4 release?

  • Ken Collins
    Ken Collins commented at 7:49 PM

    Trying this right now. Just got to figure out the right stub point. For instance.

    def test_should_return_integer_average_if_db_returns_such
      Account.connectio...
  • Ken Collins
    Ken Collins commented at 6:58 PM

    Specifically SQL Server. Details on return type here.
    http://msdn.microsoft.com/en-us/library/ms177677.aspx

    Re the code style, I do like your line better and te...

1 earlier change…
  • Ken Collins
    Ken Collins created the ticket at 2:59 AM

    Some databases return integer values for AVG. Allow that value to pass through vs raising an Fixnum#to_d no method error.

Friday, October 29 2010
5410 Multiple database queries when chaining named scopes with rails 2.3.8 and rub... was updated in Ruby on Rails
5887 Can not run ActiveRecord tests under 1.9.2 was updated in Ruby on Rails
  • Ken Collins
    Ken Collins commented at 2:39 PM

    I neglected to mention this is 2-3-stable only.