Skip to content

Commit

Permalink
make fix for [#512] compatible with Rails 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Nov 23, 2009
1 parent 4e73c86 commit 0065e92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hobo/lib/hobo/dryml.rb
Expand Up @@ -38,7 +38,11 @@ def initialize(message, path=nil, line_num=nil)

def enable
ActionView::Template.register_template_handler("dryml", Hobo::Dryml::TemplateHandler)
ActionView::Template.exempt_from_layout('dryml')
if ActionView::Template.respond_to? :exempt_from_layout
ActionView::Template.exempt_from_layout('dryml')
elsif
ActionView::Base.exempt_from_layout('dryml')
end
DrymlGenerator.enable
end

Expand Down

2 comments on commit 0065e92

@al2o3cr
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 2.3-series "let's move everything around in ActionView" bites me again... :)

@bryanlarsen
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one's even crazier -- it was on ActionController in 2.1 :)

Please sign in to comment.