mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
only require padrino once
This commit is contained in:
parent
c741735446
commit
a9839731e6
2 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
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'
|
||||
if defined?(::Padrino::Helpers)
|
||||
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'
|
||||
end
|
||||
|
||||
module Middleman
|
||||
module MetaPages
|
||||
|
|
|
@ -4,8 +4,11 @@ class Middleman::CoreExtensions::DefaultHelpers < ::Middleman::Extension
|
|||
super
|
||||
|
||||
require 'active_support/core_ext/object/to_query'
|
||||
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'
|
||||
|
||||
if defined?(::Padrino::Helpers)
|
||||
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'
|
||||
end
|
||||
|
||||
app.helpers ::Padrino::Helpers::OutputHelpers
|
||||
app.helpers ::Padrino::Helpers::TagHelpers
|
||||
|
|
Loading…
Reference in a new issue