Expose asset_path on the main Application object (Sprockets needed it)
This commit is contained in:
parent
37a8caf3fa
commit
1b6af9a4c1
|
@ -167,7 +167,7 @@ module Middleman
|
||||||
attr_reader :template_context_class
|
attr_reader :template_context_class
|
||||||
|
|
||||||
attr_reader :generic_template_context
|
attr_reader :generic_template_context
|
||||||
delegate :link_to, :image_tag, :to => :generic_template_context
|
delegate :link_to, :image_tag, :asset_path, :to => :generic_template_context
|
||||||
|
|
||||||
# Initialize the Middleman project
|
# Initialize the Middleman project
|
||||||
def initialize(&block)
|
def initialize(&block)
|
||||||
|
|
Loading…
Reference in a new issue