Class: UserAbility
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- UserAbility
- Defined in:
- app/models/user_ability.rb
Class Method Summary collapse
-
.for(skilled, system_module) ⇒ Object
<=========================================================.
Instance Method Summary collapse
Class Method Details
.for(skilled, system_module) ⇒ Object
<=========================================================
16 17 18 |
# File 'app/models/user_ability.rb', line 16 def self.for(skilled, system_module) find_all_by_skilled_id_and_module_id(skilled, system_module).collect { |ua| ua.ability } end |
Instance Method Details
#garant(skilled, system_module, ability) ⇒ Object
20 21 22 |
# File 'app/models/user_ability.rb', line 20 def garant(skilled, system_module, ability) create!(:skilled => skilled, :module => system_module, :ability => ability) end |