Methods
Instance Public methods
initializer(name, opts = {}, &blk)
Link
# File railties/lib/rails/initializable.rb, line 86 def initializer(name, opts = {}, &blk) raise ArgumentError, "A block must be passed when defining an initializer" unless blk opts[:after] ||= initializers.last.name unless initializers.empty? || initializers.find { |i| i.name == opts[:before] } initializers << Initializer.new(name, nil, opts, &blk) end
initializers()
Link
initializers_chain()
Link