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.

Edgars Beigarts's latest activity

Monday, September 08 2008
994 ActiveRecord calculations does not work with :distinct was updated in Ruby on Rails
  • Edgars Beigarts
    • Assigned user set to Tarmo Tänav
    by Edgars Beigarts at 5:40 PM
  • Edgars Beigarts
    Edgars Beigarts created the ticket at 1:58 PM
    
    >> User.count(:distinct => false)
      SQL (0.465150)   SELECT count(*) AS count_all FROM users
    => 12
    >> User.count(:distinct => true)
      SQL (0.000000)   OCIError...
Wednesday, August 27 2008
911 field_changed? should check also string columns for changes from nil to '' was created in Ruby on Rails
  • Edgars Beigarts
    Edgars Beigarts created the ticket at 12:42 AM

    An empty string is treated as a null value in Oracle. So why not add " || column.type == :string" ?

    
    def field_changed?(attr, old, value)
      if column = column_...