aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/railtie
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-05-16 00:34:54 +0200
committerJosé Valim <jose.valim@gmail.com>2010-05-16 00:36:46 +0200
commit3afdfc35e8aec7e6379e093dd1278cb3de54f21b (patch)
tree851d7463d9626f852c6ef863110b381e0d10618f /railties/lib/rails/railtie
parent351816fab6dbe564b7bddbd877648edb06a2bfb1 (diff)
downloadrails-3afdfc35e8aec7e6379e093dd1278cb3de54f21b.tar.gz
rails-3afdfc35e8aec7e6379e093dd1278cb3de54f21b.tar.bz2
rails-3afdfc35e8aec7e6379e093dd1278cb3de54f21b.zip
Expose remaining hooks to minimize the need for a Railtie based on feedback from plugin developers.
Diffstat (limited to 'railties/lib/rails/railtie')
-rw-r--r--railties/lib/rails/railtie/configuration.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/lib/rails/railtie/configuration.rb b/railties/lib/rails/railtie/configuration.rb
index f57d82a3d8..c4a315708b 100644
--- a/railties/lib/rails/railtie/configuration.rb
+++ b/railties/lib/rails/railtie/configuration.rb
@@ -68,6 +68,18 @@ module Rails
end
end
+ def before_configuration(&block)
+ ActiveSupport.on_load(:before_configuration, :yield => true, &block)
+ end
+
+ def before_eager_load(&block)
+ ActiveSupport.on_load(:before_eager_load, :yield => true, &block)
+ end
+
+ def before_initialize(&block)
+ ActiveSupport.on_load(:before_initialize, :yield => true, &block)
+ end
+
def after_initialize(&block)
ActiveSupport.on_load(:after_initialize, :yield => true, &block)
end