Module: Curate::OrganizationsHelper
- Defined in:
- app/helpers/curate/organizations_helper.rb
Instance Method Summary collapse
-
#button_for_create_new_organization(label = 'Create Organization') ⇒ Object
Displays the Organizations create organization button.
- #has_any_organizations? ⇒ Boolean
Instance Method Details
#button_for_create_new_organization(label = 'Create Organization') ⇒ Object
Displays the Organizations create organization button.
4 5 6 |
# File 'app/helpers/curate/organizations_helper.rb', line 4 def (label = 'Create Organization') render partial: 'button_create_organization', locals:{label:label} end |
#has_any_organizations? ⇒ Boolean
8 9 10 11 |
# File 'app/helpers/curate/organizations_helper.rb', line 8 def has_any_organizations? #false current_user.organizations.count > 0 if current_user end |