Sha256: b178eb9cd14e11449695103ae52d2548db923709b5e40d60f4c800fed3a84b8a
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
require "sprockets/helpers/nonexistent/version" require 'sprockets/helpers' module Sprockets::Helpers::RailsHelper def self.stylesheet_link_tag(*sources) sources.each do |stylesheet| unless stylesheet.kind_of?(Hash) raise Sprockets::FileNotFound, "#{stylesheet}.css" if (Rails.env.development? || Rails.env.test?) && asset_paths.asset_for(stylesheet, "css").blank? end end super end def self.javascript_include_tag(*sources) sources.each do |javascript| unless javascript.kind_of?(Hash) raise Sprockets::FileNotFound, "#{javascript}.js" if (Rails.env.development? || Rails.env.test?) && asset_paths.asset_for(javascript, "js").blank? end end super end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprockets-helpers-nonexistent-0.0.1 | lib/sprockets/helpers/nonexistent.rb |