Class: Scorecard::Progress
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Scorecard::Progress
- Defined in:
- app/models/scorecard/progress.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.for_identifier(identifier) ⇒ Object
21 22 23 |
# File 'app/models/scorecard/progress.rb', line 21 def self.for_identifier(identifier) where identifier: identifier.to_s end |
.for_user(user) ⇒ Object
17 18 19 |
# File 'app/models/scorecard/progress.rb', line 17 def self.for_user(user) where user_id: user.id, user_type: user.class.name end |
Instance Method Details
#progression ⇒ Object
25 26 27 |
# File 'app/models/scorecard/progress.rb', line 25 def progression Scorecard.progressions.find identifier.to_sym end |