Sha256: 9eb5a51b68618c2f8e80a5594c373e65b5674c48de51d3476c59c3ba51529c46

Contents?: true

Size: 680 Bytes

Versions: 5

Compression:

Stored size: 680 Bytes

Contents

require 'sprockets/processed_asset'

module Ember::Appkit::Rails::Sprockets::ProcessedAsset
  def initialize(environment, logical_path, pathname)
    super

    _make_ember_application_template_stale(pathname)
  end

  def init_with(environment, coder)
    super

    _make_ember_application_template_stale(coder['pathname'])
  end

  private

  def _make_ember_application_template_stale(pathname)
    if pathname.to_s =~ /(ember-appkit-rails.+\/app\/assets\/javascripts\/templates\/application.hbs)|(.*\.erb)/
      def self.fresh?(environment)
        false
      end
    end
  end
end

Sprockets::ProcessedAsset.send(:prepend, Ember::Appkit::Rails::Sprockets::ProcessedAsset)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ember-appkit-rails-0.5.0 lib/ember/appkit/rails/sprockets/processed_asset.rb
ember-appkit-rails-0.4.0 lib/ember/appkit/rails/sprockets/processed_asset.rb
ember-appkit-rails-0.3.2 lib/ember/appkit/rails/sprockets/processed_asset.rb
ember-appkit-rails-0.3.1 lib/ember/appkit/rails/sprockets/processed_asset.rb
ember-appkit-rails-0.3.0 lib/ember/appkit/rails/sprockets/processed_asset.rb