lib/pakyow/assets/precompiler.rb in pakyow-assets-1.0.0.rc2 vs lib/pakyow/assets/precompiler.rb in pakyow-assets-1.0.0.rc3
- old
+ new
@@ -23,10 +23,12 @@
precompile_asset!(pack.stylesheets)
end
end
end
+ private
+
def precompile_asset!(asset)
compile_path = File.join(@app.config.assets.compile_path, asset.public_path)
FileUtils.mkdir_p(File.dirname(compile_path))
asset_content = String.new
@@ -43,10 +45,9 @@
file.write(source_map.read)
end
end
end
- private
def assets
@app.state(:asset) + @app.plugs.flat_map { |plug|
plug.state(:asset)
}