Module: Locomotive::AccountsHelper
- Defined in:
- app/helpers/locomotive/accounts_helper.rb
Instance Method Summary collapse
Instance Method Details
#admin_on?(site = current_site) ⇒ Boolean
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.account == current_locomotive_account } end |
#options_for_account ⇒ Object
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 |