lib/slim-rails.rb in slim-rails-3.1.0 vs lib/slim-rails.rb in slim-rails-3.1.1

- old
+ new

@@ -1,17 +1,16 @@ require 'slim-rails/version' require 'rails' require 'slim' +require 'slim-rails/register_engine' module Slim module Rails class Railtie < ::Rails::Railtie config.app_generators.template_engine :slim initializer 'slim_rails.configure_template_digestor' do |app| - if app.assets && app.assets.respond_to?(:register_engine) - app.assets.register_engine '.slim', Slim::Template - end + Slim::Rails::RegisterEngine.register_engine(app, config) ActiveSupport.on_load(:action_view) do ActiveSupport.on_load(:after_initialize) do begin if defined?(CacheDigests::DependencyTracker)