Sha256: 953dbeb5925fa0c5630cd9620aed62667ed48c917ae562f082d8e8a3be29033e
Contents?: true
Size: 458 Bytes
Versions: 7
Compression:
Stored size: 458 Bytes
Contents
module Fotoramajs module Helpers def include_fotorama(options = {}) options[:env] ||= ::Rails.env.to_sym if options[:env] == :development root = '' else cdnjs = '//cdnjs.cloudflare.com/ajax/libs/' root = cdnjs + "fotorama/#{ Fotoramajs::VERSION }/" end stylesheet_link_tag(root + 'fotorama.css') + javascript_include_tag(root + 'fotorama.js', defer: options[:defer]) end end end
Version data entries
7 entries across 7 versions & 1 rubygems