class Sprockets::BundledAsset
def check_circular_dependency!
Check if self has already been required and raise a fast
def check_circular_dependency! requires = @options[:_requires] ||= [] if requires.include?(pathname.to_s) raise CircularDependencyError, "#{pathname} has already been required" end requires << pathname.to_s end