Module: Rang::Patcher

Defined in:
lib/rang/patcher.rb

Class Method Summary collapse

Class Method Details

.patch!Object



3
4
5
6
7
8
9
# File 'lib/rang/patcher.rb', line 3

def self.patch!
  patch_sprockets_to_use_html_extension! if Config.patch_sprockets_to_use_html_extension
  disable_html_precompilation! if Config.disable_html_precompilation
  add_frontend_assets_directory!(Config.frontend_assets_directory) if Config.frontend_assets_directory
  register_slim_as_assets_engine! if Util.gem_present? 'slim'
  remove_angular_delims_from_slim! if Util.gem_present?('slim') && Config.remove_angular_delims_from_slim
end