mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:04:21 +08:00
c866d5b42d
This reverts commit cd1dd18f01
.
8 lines
280 B
Ruby
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
|