summaryrefslogtreecommitdiff
path: root/users/app/helpers/users_helper.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2013-01-20 23:41:11 -0800
committerazul <azul@riseup.net>2013-01-20 23:41:11 -0800
commited1caa740f0e58cfd5f2d908946461154db68174 (patch)
treed4481ebc868bb1169ba40f7bf9f21d984e3e0560 /users/app/helpers/users_helper.rb
parent168c36b578d675c99aad62a350aa68cc1b6d1316 (diff)
parentb348f9dbf3b8298e0e76bda6a9da973da25ed9bd (diff)
Merge pull request #19 from leapcode/feature/partial-refactor
more flexible email partial
Diffstat (limited to 'users/app/helpers/users_helper.rb')
-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