Skip to content

Commit

Permalink
Do not extend Object.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeigarts authored and gregbell committed Jan 9, 2012
1 parent 4537f89 commit 67e27b9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/active_admin/arbre.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "active_admin/arbre/builder"
require "active_admin/arbre/core_extensions"
require "active_admin/arbre/context"
require "active_admin/arbre/html/element"
require "active_admin/arbre/html/attributes"
Expand Down
5 changes: 0 additions & 5 deletions lib/active_admin/arbre/core_extensions.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/active_admin/arbre/html/text_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def tag_name
end

def to_html
ERB::Util.html_escape(@content.to_html)
ERB::Util.html_escape(@content.to_s)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/arbre/html/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
it "should html escape the string" do
string = "Goodbye <br />"
element.content = string
element.content.to_html.should == "Goodbye &lt;br /&gt;"
element.to_html.should == "Goodbye &lt;br /&gt;"
end
end

Expand Down

0 comments on commit 67e27b9

Please sign in to comment.