module Rails::Initializable

def self.included(base)

def self.included(base)
  base.extend ClassMethods
end

def initializers

def initializers
  @initializers ||= self.class.initializers_for(self)
end

def run_initializers(*args)

def run_initializers(*args)
  return if instance_variable_defined?(:@ran)
  initializers.tsort.each do |initializer|
    initializer.run(*args)
  end
  @ran = true
end