Module: Pageflow::UsersHelper
- Defined in:
- app/helpers/pageflow/users_helper.rb
Instance Method Summary collapse
Instance Method Details
#collection_for_user_roles ⇒ Object
3 4 5 |
# File 'app/helpers/pageflow/users_helper.rb', line 3 def collection_for_user_roles User.roles_accessible_by(current_ability).index_by { |role| t(role, :scope => 'admin.users.roles') } end |
#user_collection_for_parent(parent) ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/helpers/pageflow/users_helper.rb', line 7 def user_collection_for_parent(parent) if parent.is_a?(Entry) parent.account.users - parent.users else parent.account.users end end |