Sha256: 927938006b704f29a8b3dd5b15f8f493551b20493120399fb3428ee736a4bca5
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
module SketchilyShow module ActionViewBaseInstanceMethods def sketchily_show(uri, options = {}) "<img src='data:image/svg+xml;base64,#{uri}' #{"width='#{options[:width]}'" if options[:width]} #{"height='#{options[:height]}'" if options[:height]}>".html_safe end def svg_show(uri, options = {}) sketchily_show(uri, options) end end end ActionView::Base.send :include, SketchilyShow::ActionViewBaseInstanceMethods
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sketchily-0.0.2 | lib/sketchily/sketchily_show.rb~ |