Sha256: b5ca23ea47f5f074edd5aba77c85432a0c4a582435392c7ceb21b9ece37a8a59

Contents?: true

Size: 668 Bytes

Versions: 3

Compression:

Stored size: 668 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/
      def self.fresh?(environment)
        false
      end
    end
  end
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ember-appkit-rails-0.2.2 lib/ember/appkit/rails/sprockets/processed_asset.rb
ember-appkit-rails-0.2.1 lib/ember/appkit/rails/sprockets/processed_asset.rb
ember-appkit-rails-0.2.0 lib/ember/appkit/rails/sprockets/processed_asset.rb