Sha256: 81c41c960fd6fd1052e0ef49b80801253f2685b8f06704bda2ab7cdbba172b84
Contents?: true
Size: 889 Bytes
Versions: 6
Compression:
Stored size: 889 Bytes
Contents
require 'dassets' require 'romo-av' module Romo::Av; end module Romo::Av::Dassets # This assumes you are using 'js/romo-{audio|video}.js' as part of a larger # combination or are loading romo's modal/dropdown js components before # loading this combination. def self.configure! Dassets.configure do |c| c.source Romo::Av.gem_assets_path do |s| s.filter{ |paths| paths.reject{ |p| File.basename(p) =~ /^_/ } } end # just audio c.combination "js/romo-av-audio.js", [ 'js/romo-av/audio.js' ] # just video c.combination "js/romo-av-video.js", [ 'js/romo-av/video.js', 'js/romo-av/modal_video.js', 'js/romo-av/dropdown_video.js' ] # both audio and video c.combination "js/romo-av.js", [ 'js/romo-av-audio.js', 'js/romo-av-video.js' ] end end end
Version data entries
6 entries across 6 versions & 1 rubygems