niko
Developer · Not a member
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 commented at 7:16 PMWe'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 created the ticket at 10:45 AMFix:
def rewrite_asset_path(source) asset_id = rails_asset_id(source) if asset_id.blank? source else source + "#{source.include?('?')...
Thursday, May 28 2009
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 created the ticket at 4:46 PMGiven 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_...