Class: Gamification::Reward
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Gamification::Reward
- Defined in:
- app/models/gamification/reward.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.see ⇒ Object
26 27 28 |
# File 'app/models/gamification/reward.rb', line 26 def see all.map { |reward| reward.see } end |
Instance Method Details
#see ⇒ Object
17 18 19 |
# File 'app/models/gamification/reward.rb', line 17 def see touch :seen_at end |
#seen? ⇒ Boolean
21 22 23 |
# File 'app/models/gamification/reward.rb', line 21 def seen? !!seen_at end |