lib/consul/controller.rb in consul-0.13.0 vs lib/consul/controller.rb in consul-0.13.1

- old
+ new

@@ -59,11 +59,14 @@ if Rails.version.to_i < 4 around_filter :with_current_power else around_action :with_current_power end - helper_method :current_power + + if respond_to?(:helper_method) + helper_method :current_power + end end def consul_guards @consul_guards ||= [] end @@ -130,7 +133,7 @@ end end end - + end