Module: Peteshow::Helpers
- Defined in:
- lib/peteshow/helpers.rb
Instance Method Summary collapse
Instance Method Details
#peteshow_include_tag(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/peteshow/helpers.rb', line 3 def peteshow_include_tag(*args) config = Peteshow.config country = args.first.is_a?(String) ? args.shift : nil = args.first || {} return unless config.enabled == true = [] << javascript_include_tag('peteshow.min.js', ) << javascript_include_tag("peteshow.#{country}", ) if country << stylesheet_link_tag('peteshow') .join.html_safe end |