Class: PrincipalRole
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PrincipalRole
- Defined in:
- app/models/principal_role.rb
Overview
– copyright OpenProject is a project management system.
Copyright © 2010-2013 the OpenProject Team
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details. ++
Instance Method Summary collapse
Instance Method Details
#validate_assignable ⇒ Object
20 21 22 |
# File 'app/models/principal_role.rb', line 20 def validate_assignable add_error_can_not_be_assigned unless self.role.assignable_to?(self.principal) end |