Module: Awardee
- Included in:
- User
- Defined in:
- app/models/concerns/awardee.rb
Instance Method Summary collapse
- #acquired_medals(organization = Organization.current) ⇒ Object
- #unacquired_medals(organization = Organization.current) ⇒ Object
Instance Method Details
#acquired_medals(organization = Organization.current) ⇒ Object
2 3 4 |
# File 'app/models/concerns/awardee.rb', line 2 def acquired_medals(organization=Organization.current) @acquired_medals ||= medals_for awarded_contents_in(organization) end |
#unacquired_medals(organization = Organization.current) ⇒ Object
6 7 8 |
# File 'app/models/concerns/awardee.rb', line 6 def unacquired_medals(organization=Organization.current) @unacquired_medals ||= medals_for unawarded_contents_in(organization) end |