discourse/config/initializers/010-discourse_iife.rb
2015-12-09 11:48:41 +11:00

8 lines
280 B
Ruby

require 'discourse_iife'
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