diff --git a/lib/blush.rb b/lib/blush.rb index a16f2c1..33b11b8 100644 --- a/lib/blush.rb +++ b/lib/blush.rb @@ -6,6 +6,10 @@ module Blush module_function def config @config ||= Blush::Configuration.new end + + module_function def helpers + @helpers ||= ActionView::Base.new + end end ActiveRecord::Base.send :extend, Blush::HasPresenter diff --git a/lib/blush/presenter.rb b/lib/blush/presenter.rb index c0a5d26..bdf3745 100644 --- a/lib/blush/presenter.rb +++ b/lib/blush/presenter.rb @@ -7,7 +7,7 @@ def initialize(object) end def helpers - @helpers ||= ActionView::Base.new + Blush.helpers end alias_method :h, :helpers