Skip to content

Commit

Permalink
View helpers now available in presenters
Browse files Browse the repository at this point in the history
  • Loading branch information
blaknite committed May 16, 2016
1 parent 0d3ebaa commit 2ada6f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/blush/presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@ class Presenter
def initialize(object)
@object = object
end

def helpers
@helpers ||= ActionView::Base.new
end

alias_method :h, :helpers
end
end

0 comments on commit 2ada6f9

Please sign in to comment.