Module: Pageflow::UserMixin::ClassMethods

Defined in:
lib/pageflow/user_mixin.rb

Instance Method Summary collapse

Instance Method Details

#roles_accessible_by(ability) ⇒ Object


65
66
67
# File 'lib/pageflow/user_mixin.rb', line 65

def roles_accessible_by(ability)
  ability.can?(:read, Account) ? ROLES : NON_ADMIN_ROLES
end