Module: Locomotive::AccountsHelper

Defined in:
app/helpers/locomotive/accounts_helper.rb

Instance Method Summary collapse

Instance Method Details

#admin_on?(site = current_site) ⇒ Boolean

Returns:



4
5
6
# File 'app/helpers/locomotive/accounts_helper.rb', line 4

def admin_on?(site = current_site)
  site.memberships.detect { |m| m.admin? && m. ==  }
end

#options_for_accountObject



8
9
10
# File 'app/helpers/locomotive/accounts_helper.rb', line 8

def 
  current_site.accounts.collect { |a| ["#{a.name} <#{a.email}>", a.id.to_s] }
end