discourse/config/initializers/010-discourse_iife.rb

8 lines
280 B
Ruby
Raw Normal View History

require 'discourse_iife'
2015-04-16 15:44:24 -05:00
Rails.application.assets.register_preprocessor('application/javascript', DiscourseIIFE)
unless Rails.env.production? || ENV["DISABLE_EVAL"]
require 'source_url'
Rails.application.assets.register_postprocessor('application/javascript', SourceURL)
end