Module: DockerRailsProxy::Callbacks
- Included in:
- Base
- Defined in:
- lib/docker_rails_proxy/concerns/callbacks.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- INHERITABLE_CALLBACKS =
%w[ _before_initialize _after_initialize _validates _before_process _after_process ].freeze
- UNINHERITABLE_CALLBACKS =
%w[ _builds ].freeze
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/docker_rails_proxy/concerns/callbacks.rb', line 15 def self.included(base) base.extend(ClassMethods) INHERITABLE_CALLBACKS.each do |callback| base.inheritable_attributes callback.to_sym base.send "#{callback}=", [] end UNINHERITABLE_CALLBACKS.each do |callback| base.uninheritable_attributes callback.to_sym end end |