Skip to content

Commit

Permalink
- don't check the class method, but check that the instance method is…
Browse files Browse the repository at this point in the history
… defined.

- we don't actually need the instance variable.
  • Loading branch information
TJ Singleton committed May 18, 2010
1 parent 81a2991 commit d241f51
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/declarative_authorization/rails_legacy.rb
Expand Up @@ -13,11 +13,10 @@ def deep_merge(other_hash)
end
end

unless String.respond_to?(:html_safe)
unless String.instance_methods.include?(:html_safe)
class String
def html_safe
@_rails_html_safe = true
self
end
end
end
end

0 comments on commit d241f51

Please sign in to comment.