Browse files

Merge pull request #20 from arturadib/master

Warn users that safe_helper is not supported in Rails 3
  • Loading branch information...
2 parents 807a8a0 + 7edb381 commit f8c4f5b20a6b265c83df2f9dd077a2d35f5a6e93 @josevalim josevalim committed Dec 19, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 README.markdown
View
5 README.markdown
@@ -28,13 +28,14 @@ With this plugin installed, the html will be escaped. So you will need to do on
end.join("\n").html_safe
end
-3) Use the safe_helper meta programming method:
+3) Use the `safe_helper` meta programming method (WARNING: This is not supported by Rails 3, so if you're planning to
+eventually upgrade your app this alternative is not recommended):
module ApplicationHelper
def some_helper
#...
end
- safe_helper :some_helper
+ safe_helper :some_helper # not supported by Rails 3
end
Example

0 comments on commit f8c4f5b

Please sign in to comment.