lib/slim-rails.rb in slim-rails-3.0.1 vs lib/slim-rails.rb in slim-rails-3.1.0
- old
+ new
@@ -25,19 +25,15 @@
end
elsif ::Rails.version.to_s >= '4.0'
# will only apply if Rails 4, which includes 'action_view/dependency_tracker'
require 'action_view/dependency_tracker'
ActionView::DependencyTracker.register_tracker :slim, ActionView::DependencyTracker::ERBTracker
- ActionView::Base.cache_template_loading = false if ::Rails.env.development?
end
rescue
# likely this version of Rails doesn't support dependency tracking
end
end
end
end
end
end
end
-
-Slim::Engine.set_options pretty: Rails.env.development?
-