diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-24 11:39:37 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-24 11:40:22 +0200 |
commit | e061a12a156791c35bba092263ad216b1b938502 (patch) | |
tree | 465238f47d1929b407ccac692b761d252c4f5ce2 /railties/lib | |
parent | 5eb3b4d9a78268753d009404810619cf93cf6581 (diff) | |
download | rails-e061a12a156791c35bba092263ad216b1b938502.tar.gz rails-e061a12a156791c35bba092263ad216b1b938502.tar.bz2 rails-e061a12a156791c35bba092263ad216b1b938502.zip |
Remove run_initializers from class methods.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/initializable.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/railties/lib/rails/initializable.rb b/railties/lib/rails/initializable.rb index fba3ad2c85..686a2dc0cb 100644 --- a/railties/lib/rails/initializable.rb +++ b/railties/lib/rails/initializable.rb @@ -79,14 +79,6 @@ module Rails opts[:after] ||= initializers.last.name unless initializers.empty? || initializers.find { |i| i.name == opts[:before] } initializers << Initializer.new(name, nil, opts, &blk) end - - def run_initializers(*args) - return if @ran - initializers_chain.tsort.each do |initializer| - instance_exec(*args, &initializer.block) - end - @ran = true - end end end end |