lib/consul/controller.rb in consul-0.12.3 vs lib/consul/controller.rb in consul-0.12.4
- old
+ new
@@ -41,11 +41,13 @@
# This is badly named, since it doesn't actually skip the :check_power filter
def skip_power_check(options = {})
if Rails.version.to_i < 4
skip_before_filter :unchecked_power, options
- else
+ elsif Rails.version.to_i < 5
skip_before_action :unchecked_power, options
+ else
+ skip_before_action :unchecked_power, { :raise => false }.merge!(options)
end
end
def current_power(&initializer)
self.current_power_initializer = initializer