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
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/route_wrapper.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/sprockets-rails-3.4.2/lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.4.2 lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.4.1 lib/sprockets/rails/route_wrapper.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.3.0/lib/sprockets/rails/route_wrapper.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.3.0/lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.4.0 lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.3.0 lib/sprockets/rails/route_wrapper.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/route_wrapper.rb
sprockets-rails-3.2.2 lib/sprockets/rails/route_wrapper.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/route_wrapper.rb