lib/romo/dassets.rb in romo-0.14.1 vs lib/romo/dassets.rb in romo-0.14.2

- old
+ new

@@ -8,10 +8,12 @@ # TODO: this is a prototype - I'm not even sure how this API will shake out. # eventually would have a gem, "romo-dassets", do this or something def self.configure! + return if @configured + Dassets.configure do |c| c.source Romo.gem_assets_path do |s| s.filter{ |paths| paths.reject{ |p| File.basename(p) =~ /^_/ } } s.engine 'erb', Dassets::Erb::Engine @@ -56,10 +58,13 @@ 'js/romo/modal_form.js', 'js/romo/tooltip.js', 'js/romo/indicator.js', 'js/romo/sortable.js' ] - end + + @configured = true end + + def self.reset!; @configured = false; end end