lib/deface/action_view_extensions.rb in deface-0.7.0 vs lib/deface/action_view_extensions.rb in deface-0.7.1

- old
+ new

@@ -1,9 +1,11 @@ ActionView::Template.class_eval do alias_method :rails_initialize, :initialize def initialize(source, identifier, handler, details) - source = Deface::Override.apply(source, details) + if Rails.application.config.deface.enabled + source = Deface::Override.apply(source, details) + end rails_initialize(source, identifier, handler, details) end end