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.

Smeevil's latest activity

Sunday, August 08 2010
1349 named scope with group by bug? was updated in Ruby on Rails
  • Smeevil
    Smeevil commented at 3:45 PM

    My current "workaround" :

    has_many :followers, :class_name=>"User", :through=>:received_investments, :source=>:wallet, :group=>"users.id"
    def followers 
      retu...
  • Smeevil
    • Tag set to activerecord associations, group, has_many_through_association
    • Importance changed from to
    by Smeevil at 3:23 PM

    I just ran into a similar bug :

    Using :

    has_many :followers, :class_name=>"User", :through=>:received_investments, :source=>:wallet, :group=>"users.id"

    Model.fo...

Monday, September 14 2009
3201 number_to_human_size only working properly when :precision and :separator given was created in Ruby on Rails
  • Smeevil
    Smeevil created the ticket at 9:27 PM

    number_to_human_size(10000000000)
    returns : 9.31322574615479

    whereas number_to_human_size(10000000000,:precision => 2, :separator => '.')
    returns : 9.31 GB

    leav...

Wednesday, September 03 2008
964 Fix for SQL injection on :limit and :offset should be backported was updated in Ruby on Rails
  • Smeevil
    Smeevil commented at 3:58 PM

    +1 , nasty