Module: Flatrack::AssetExtensions
- Included in:
- View
- Defined in:
- lib/flatrack/asset_extensions.rb
Overview
Provides asset helpers to various parts of a flatrack site.
Instance Method Summary collapse
-
#asset_path(path, _ = {}) ⇒ String
The path to a given asset.
Instance Method Details
#asset_path(path, _ = {}) ⇒ String
The path to a given asset
7 8 9 |
# File 'lib/flatrack/asset_extensions.rb', line 7 def asset_path(path, _ = {}) File.join('/assets', path.to_s) end |