On Thursday, March 7, 2013 11:45:22 AM UTC+1, ngw wrote:

> CUT


Sorry for the formatting

config.action_controller.asset_host = Proc.new { |source, request=nil|
    if request && request.ssl?
        "https://staging.foobar.it";
    else
        "http://assets#{ <http://assets/#%7B> ( source.length % 4 ) + 1 }.
staging.foobar.it" 
    end 
}

Hope it's more clear. It's bascially copied from the docs :)

  ngw

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/__XJh0sPS4cJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to