1
0
Fork 0
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:
Thomas Reynolds 2013-06-04 09:48:01 -07:00
parent c741735446
commit a9839731e6
2 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -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