Sha256: 78d4d0132f0b39ac50f1730256835d8c91ec430817bcf3c9e0c0f25fbfcb7333
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
module PostdocViewHelper def postdoc_stylesheet_link_tag(*path) content_tag :style, File.read( Rails.root.join('app', 'assets', 'stylesheets', *path) ).html_safe, type: 'text/css' end protected # include an assets from the gem app/assets folder def postdoc_gem_asset(*path) File.join(File.dirname(__FILE__), '..', '..', 'app', 'assets', *path) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
postdoc-0.2.0 | lib/postdoc/postdoc_view_helper.rb |