class Eaco::Cucumber::ActiveRecord::User

This is an example of a {Eaco::Actor} that can be authorized against the ACLs in a resource, such as the example {Document}.

For the background story, see {Eaco::Cucumber::World}.

@see Document @see Eaco::Actor @see Eaco::Cucumber::World

Public Instance Methods

department_names() click to toggle source

The {Department} names this User has a {Position} in.

@return [Array] the {Department} names as +String+s.

# File lib/eaco/cucumber/active_record/user.rb, line 26
def department_names
  departments.to_set(&:name)
end