class TinyMCE::Rails::Engine
def self.asset_host
def self.asset_host host = Rails.application.config.action_controller.asset_host if host.respond_to?(:call) # Callable asset hosts cannot be supported during # precompilation as there is no request object nil elsif host =~ /%d/ # Load all TinyMCE assets from the first asset host normalize_host(host % 0) else normalize_host(host) end end