instance method compile

Ruby on Rails 3.2.22.5

Since v3.1.12 Last seen in v3.2.22.5

Available in: v3.1.12 v3.2.22.5

Signature

compile()

No documentation comment.

Source
# File actionpack/lib/sprockets/static_compiler.rb, line 16
    def compile
      manifest = {}
      env.each_logical_path(paths) do |logical_path|
        if asset = env.find_asset(logical_path)
          digest_path = write_asset(asset)
          manifest[asset.logical_path] = digest_path
          manifest[aliased_path_for(asset.logical_path)] = digest_path
        end
      end
      write_manifest(manifest) if @manifest
    end

Defined in actionpack/lib/sprockets/static_compiler.rb line 16 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Sprockets::StaticCompiler

Type at least 2 characters to search.

↑↓ navigate · open · esc close