Module: Consul::Controller
- Defined in:
- lib/consul/controller.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/consul/controller.rb', line 4 def self.included(base) base.send :include, InstanceMethods base.send :extend, ClassMethods if ensure_power_initializer_present? if Rails.version.to_i < 4 base.before_filter :ensure_power_initializer_present else base.before_action :ensure_power_initializer_present end end end |