Method: Pageflow::Admin::UsersHelper#users_quota_state
- Defined in:
- app/helpers/pageflow/admin/users_helper.rb
#users_quota_state(account) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/helpers/pageflow/admin/users_helper.rb', line 6 def users_quota_state(account) quota = Pageflow.config.quotas.get(:users, account) data_attributes = { account_id: account.id, state: quota.state } render('pageflow/admin/users/quota_state', account:, quota:, data_attributes:) end |