module DockerRailsProxy::Callbacks

Constants

INHERITABLE_CALLBACKS
UNINHERITABLE_CALLBACKS

Public Class Methods

included(base) click to toggle source
# 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