instance method compile

Ruby on Rails 3.1.12

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 do |logical_path|
        if File.basename(logical_path)[/[^\.]+/, 0] == 'index'
          logical_path.sub!(/\/index\./, '.')
        end
        next unless compile_path?(logical_path)
        if asset = env.find_asset(logical_path)
          manifest[logical_path] = write_asset(asset)
        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