Class: Eaco::Cucumber::ActiveRecord::User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/eaco/cucumber/active_record/user.rb,
lib/eaco/cucumber/active_record/user/designators.rb,
lib/eaco/cucumber/active_record/user/designators/user.rb,
lib/eaco/cucumber/active_record/user/designators/position.rb,
lib/eaco/cucumber/active_record/user/designators/department.rb,
lib/eaco/cucumber/active_record/user/designators/authenticated.rb

Overview

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

For the background story, see World.

See Also:

Defined Under Namespace

Modules: Designators

Instance Method Summary collapse

Instance Method Details

#department_namesArray

The Department names this User has a Position in.

Returns:


26
27
28
# File 'lib/eaco/cucumber/active_record/user.rb', line 26

def department_names
  departments.to_set(&:name)
end