Sha256: 7fb1e64c385074097eeda52f33ef5975264277c86b59ab4b82740291723daa98
Contents?: true
Size: 790 Bytes
Versions: 15
Compression:
Stored size: 790 Bytes
Contents
require 'blacklight' require 'blacklight_range_limit' require 'rails' module BlacklightRangeLimit class Engine < Rails::Engine # Need to tell asset pipeline to precompile the excanvas # we use for IE. initializer "blacklight_range_limit.assets", :after => "assets" do Rails.application.config.assets.precompile += %w( flot/excanvas.min.js ) end # Do these things in a to_prepare block, to try and make them work # in development mode with class-reloading. The trick is we can't # be sure if the controllers we're modifying are being reloaded in # dev mode, if they are in the BL plugin and haven't been copied to # local, they won't be. But we do our best. config.to_prepare do BlacklightRangeLimit.inject! end end end
Version data entries
15 entries across 15 versions & 1 rubygems