lib/rafters/directive_processor.rb in rafters-0.1.2 vs lib/rafters/directive_processor.rb in rafters-0.1.3
- old
+ new
@@ -1,11 +1,13 @@
require 'sprockets'
-class Rafters::DirectiveProcessor < Sprockets::DirectiveProcessor
- def process_require_components_directive
- Rafters.asset_paths.sort.each do |asset_path|
- each_entry(asset_path) do |pathname|
- context.require_asset(pathname) if context.asset_requirable?(pathname)
+module Rafters
+ class DirectiveProcessor < Sprockets::DirectiveProcessor
+ def process_require_components_directive
+ Rafters.asset_paths.sort.each do |asset_path|
+ each_entry(asset_path) do |pathname|
+ context.require_asset(pathname) if context.asset_requirable?(pathname)
+ end
end
end
end
end