Module: Card::Set::All::Path::CssFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod004-format/all/path.rb
Instance Method Summary collapse
Instance Method Details
#contextualize_path(relative_path) ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/path.rb', line 63 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 |