Skip to content

Commit

Permalink
Fixed Arbre rendering for Rails 3.1.0.rc5 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregbell committed Jul 26, 2011
1 parent f7b3f71 commit 7cd0bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin/arbre.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ module Arbre
require 'action_view'

ActionView::Template.register_template_handler :arb, lambda { |template|
"self.class.send :include, Arbre::HTML; @_helpers = self; @__current_dom_element__ = Arbre::Context.new(assigns, helpers); begin; #{template.source}; end; current_dom_context"
"self.class.send :include, Arbre::HTML; @_helpers = self; @__current_dom_element__ = Arbre::Context.new(assigns, self); begin; #{template.source}; end; current_dom_context"
}

0 comments on commit 7cd0bcc

Please sign in to comment.