rename after_config_init to after_configuration

This commit is contained in:
Thomas Reynolds 2011-08-04 19:30:58 -07:00
parent c635c0ce6a
commit 8c07dd3f97
5 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ module Middleman::CoreExtensions::Compass
rescue LoadError
end
app.after_feature_init do
app.after_configuration do
# Support a stand-alone compass config file
# Many options are overwritten by Middleman, but the config is a good
# place to add:

View file

@ -64,7 +64,7 @@ module Middleman::CoreExtensions::Features
end
# Add a block/proc to be run after features have been setup
def after_feature_init(&block)
def after_configuration(&block)
@run_after_features ||= []
@run_after_features << block
end

View file

@ -22,7 +22,7 @@ module Middleman::CoreExtensions::FrontMatter
::Tilt::register HamlTemplate, 'haml'
::Tilt.prefer(HamlTemplate)
app.after_feature_init do
app.after_configuration do
app.before_processing do
request_path = request.path_info.gsub("%20", " ")
result = resolve_template(request_path, :raise_exceptions => false)

View file

@ -8,7 +8,7 @@ module Middleman
# Include helpers
app.helpers Middleman::Features::Blog::Helpers
app.after_feature_init do
app.after_configuration do
if !app.settings.respond_to? :blog_permalink
app.set :blog_permalink, ":year/:month/:day/:title.html"
end

View file

@ -2,7 +2,7 @@ module Middleman::Renderers::Markdown
class << self
def registered(app)
app.set :markdown_engine, ::Tilt::RDiscountTemplate
app.after_feature_init do
app.after_configuration do
::Tilt.prefer(app.settings.markdown_engine)
end
end