Module: Card::Set::All::Path::CssFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- tmpsets/set/mod021-standard/all/path.rb
Instance Method Summary collapse
Instance Method Details
#contextualize_path(relative_path) ⇒ Object
160 161 162 163 164 165 166 167 168 169 |
# File 'tmpsets/set/mod021-standard/all/path.rb', line 160 def contextualize_path relative_path if Card.config.file_storage == :local # absolute paths lead to invalid assets path in css for cukes card_path relative_path else # ...but relative paths are problematic when machine output and # hard-coded assets (like fonts) are on different servers card_url relative_path end end |