method

create

rails latest stable - Class: ActionView::Helpers::AssetTagHelper::AssetTag

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

create(template, controller, source, include_host = true)
public

No documentation available.

# File actionpack/lib/action_view/helpers/asset_tag_helper.rb, line 530
          def self.create(template, controller, source, include_host = true)
            CacheGuard.synchronize do
              key = if controller.respond_to?(:request)
                [self, controller.request.protocol,
                 ActionController::Base.asset_host,
                 ActionController::Base.relative_url_root,
                 source, include_host]
              else
                [self, ActionController::Base.asset_host, source, include_host]
              end
              Cache[key] ||= new(template, controller, source, include_host).freeze
            end
          end