Skip to content

Commit

Permalink
[Haml] Fixed content_tag bug
Browse files Browse the repository at this point in the history
(introduced in Rails commit 5ffaaa71d149c9807260c950c9a61d01fe734827)
  • Loading branch information
spohlenz authored and nex3 committed Aug 6, 2009
1 parent 96d5450 commit 207cf2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/haml/helpers/action_view_mods.rb
Expand Up @@ -123,8 +123,10 @@ def is_haml?
@template_object.send :is_haml?
end

alias_method :content_tag_without_haml, :content_tag
alias_method :content_tag, :content_tag_with_haml
unless defined?(ActionView::Helpers::ActiveRecordInstanceTag)
alias_method :content_tag_without_haml, :content_tag
alias_method :content_tag, :content_tag_with_haml
end
end

module FormTagHelper
Expand Down

0 comments on commit 207cf2f

Please sign in to comment.