Skip to content

Commit

Permalink
add conditional in case Haml is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin committed Dec 25, 2014
1 parent 28cc88a commit 2c75d67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rails_presenter/base.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
class RailsPresenter::Base
include ActionView::Context # fix output_buffer to be able to capture yielded block
include Haml::Helpers # add capture_haml support
if defined? Haml
include Haml::Helpers # add capture_haml support
end
include Sprockets::Rails::Helper # add asset pipeline support
def initialize
self.debug_assets = Rails.application.config.assets.debug
Expand Down

0 comments on commit 2c75d67

Please sign in to comment.