Module: Curate::OrganizationsHelper

Defined in:
app/helpers/curate/organizations_helper.rb

Instance Method Summary collapse

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 button_for_create_new_organization(label = 'Create Organization')
  render partial: 'button_create_organization', locals:{label:label}
end

#has_any_organizations?Boolean

Returns:

  • (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