Sha256: 4b3b34584131118a442ddc77140a4bb6c05db9bb05d9b187dd4ff281d9001b28

Contents?: true

Size: 645 Bytes

Versions: 1

Compression:

Stored size: 645 Bytes

Contents

require 'rack'
require 'sprockets/nyny/version'
require 'sprockets/nyny/builder'

module Sprockets
  module NYNY
    def self.load_tasks app
      require 'sprockets/rails/task'
      Sprockets::Rails::Task.new(app)
    end

    def root
      ::NYNY.root
    end

    def before_run &block
      before_run_hooks << Proc.new(&block)
    end

    def self.registered app
      app.helpers ActionView::Helpers::AssetUrlHelper
      app.helpers ActionView::Helpers::AssetTagHelper
      app.helpers Sprockets::Rails::Helper

      Builder.build_environment(app)
      Builder.build_config(app.config)
      Builder.add_hooks(app)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sprockets-nyny-0.0.2 lib/sprockets/nyny.rb