only require padrino once
This commit is contained in:
parent
c741735446
commit
a9839731e6
|
@ -1,5 +1,7 @@
|
||||||
|
if defined?(::Padrino::Helpers)
|
||||||
require 'vendored-middleman-deps/padrino-core-0.10.7/lib/padrino-core/support_lite'
|
require 'vendored-middleman-deps/padrino-core-0.10.7/lib/padrino-core/support_lite'
|
||||||
require 'vendored-middleman-deps/padrino-helpers-0.10.7/lib/padrino-helpers'
|
require 'vendored-middleman-deps/padrino-helpers-0.10.7/lib/padrino-helpers'
|
||||||
|
end
|
||||||
|
|
||||||
module Middleman
|
module Middleman
|
||||||
module MetaPages
|
module MetaPages
|
||||||
|
|
|
@ -4,8 +4,11 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
|
||||||
super
|
super
|
||||||
|
|
||||||
require 'active_support/core_ext/object/to_query'
|
require 'active_support/core_ext/object/to_query'
|
||||||
|
|
||||||
|
if defined?(::Padrino::Helpers)
|
||||||
require 'vendored-middleman-deps/padrino-core-0.10.7/lib/padrino-core/support_lite'
|
require 'vendored-middleman-deps/padrino-core-0.10.7/lib/padrino-core/support_lite'
|
||||||
require 'vendored-middleman-deps/padrino-helpers-0.10.7/lib/padrino-helpers'
|
require 'vendored-middleman-deps/padrino-helpers-0.10.7/lib/padrino-helpers'
|
||||||
|
end
|
||||||
|
|
||||||
app.helpers ::Padrino::Helpers::OutputHelpers
|
app.helpers ::Padrino::Helpers::OutputHelpers
|
||||||
app.helpers ::Padrino::Helpers::TagHelpers
|
app.helpers ::Padrino::Helpers::TagHelpers
|
||||||
|
|
Loading…
Reference in a new issue