Sha256: 60668996a59998b41875ad8fe97db65ccb21ebd757d6cf3b3f7c8f61e875f104
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
require 'uv' module BrighterPlanetHelper def render_or_nothing(*args) begin render(*args) rescue ::ActionView::MissingTemplate nil end end def syntax(code, lang = 'ruby') ::Uv.parse(code, 'xhtml', lang, false, :idle).html_safe end def link_to_homesite(text, path = '') if ::BrighterPlanetLayout.application_name == 'Brighter Planet' path.insert 0, '/' else path.insert 0, 'http://brighterplanet.com/' end link_to text, path end def brighter_planet_layout_cdn_url(path) if ::Rails.env.production? [ request.protocol, ::BrighterPlanetLayout::CDN, "/#{::BrighterPlanetLayout::VERSION}", path ].join else path end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
brighter_planet_layout-ruby19-0.2.48 | app/helpers/brighter_planet_helper.rb |
brighter_planet_layout-0.2.48 | app/helpers/brighter_planet_helper.rb |