Where is asset_host rails 3?

Posted by tig on Stack Overflow See other posts from Stack Overflow or by tig
Published on 2010-05-02T15:48:43Z Indexed on 2010/05/02 15:58 UTC
Read the original article Hit count: 275

What happened to asset_host in rails 3? Earlier I can put following code into development.rb and get all assets not present on development:

ActionController::Base.asset_host = proc do |source, request|
  unless File.exist?(File.join(RAILS_ROOT, 'public', source.sub(/\?\d+$/, '')))
    'http://example.com'
  end
end

But in rails 3 there is no such method and google does not help me.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails3