Namespace

Module

Class

Methods

Instance Public methods

initializers()

📝 Source code
# File railties/lib/rails/initializable.rb, line 66
    def initializers
      @initializers ||= self.class.initializers_for(self)
    end
🔎 See on GitHub

run_initializers(group = :default, *args)

📝 Source code
# File railties/lib/rails/initializable.rb, line 58
    def run_initializers(group = :default, *args)
      return if instance_variable_defined?(:@ran)
      initializers.tsort_each do |initializer|
        initializer.run(*args) if initializer.belongs_to?(group)
      end
      @ran = true
    end
🔎 See on GitHub