summaryrefslogtreecommitdiff
path: root/users/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/helpers')
-rw-r--r--users/app/helpers/users_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/app/helpers/users_helper.rb b/users/app/helpers/users_helper.rb
index 5f68085..9feae62 100644
--- a/users/app/helpers/users_helper.rb
+++ b/users/app/helpers/users_helper.rb
@@ -36,4 +36,11 @@ module UsersHelper
value || 'not set'
end
+ def wrapped(item, options = {})
+ options[:as] ||= :div
+ content_tag options[:as], :class => dom_class(item), :id => dom_id(item) do
+ yield
+ end
+ end
+
end