mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
c04bcf8655
Organise all initializers so they are properly ordered and use the same naming scheme
7 lines
280 B
Ruby
7 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
|