Sha256: 0dcfc0ca76d60a111a1e26d1dd25ffc3ec29154b3308842e686a0be76433f592

Contents?: true

Size: 491 Bytes

Versions: 46

Compression:

Stored size: 491 Bytes

Contents

module Sprockets
  module Rails
    module RouteWrapper

      def internal_assets_path?
        path =~ %r{\A#{self.class.assets_prefix}\z}
      end

      def internal?
        super || internal_assets_path?
      end

      def self.included(klass)
        klass.class_eval do
          def internal_with_sprockets?
            internal_without_sprockets? || internal_assets_path?
          end
          alias_method_chain :internal?, :sprockets
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 13 rubygems

Version Path
sprockets-rails-3.0.4 lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.0.3 lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.0.2 lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.0.1 lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.0.0 lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.0.0.beta2 lib/sprockets/rails/route_wrapper.rb