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.

niko's latest activity

Sunday, September 27 2009
3245 rewrite_asset_path should respect already existing query strings was updated in Ruby on Rails
  • niko
    niko commented at 7:16 PM

    We're using #compute_public_path for some downloadable assets, where the filename of the downloaded file must be different than the filename on the server. So t...

Tuesday, September 22 2009
3245 rewrite_asset_path should respect already existing query strings was created in Ruby on Rails
  • niko
    niko created the ticket at 10:45 AM

    Fix:

      def rewrite_asset_path(source)
        asset_id = rails_asset_id(source)
        if asset_id.blank?
          source
        else
          source + "#{source.include?('?')...
Thursday, May 28 2009
2729 NamedScope#size doesn't respect limit options, if the collection isn't loaded was updated in Ruby on Rails
  • niko
    • Tag changed from active_record, named_scope to active_record, named_scope, patch
    by niko at 7:53 AM
Wednesday, May 27 2009
2729 NamedScope#size doesn't respect limit options, if the collection isn't loaded was created in Ruby on Rails
  • niko
    niko created the ticket at 4:46 PM

    Given a named scope with a limit option

    named_scope :limited_to_2, lambda { {:limit => 2} }
    

    calling #size when the collection isn't loaded yet

    Model.limited_...