Module: ProgressHelper
- Defined in:
- app/helpers/progress_helper.rb
Instance Method Summary collapse
-
#book_practice_key_for(student) ⇒ Object
FIXME refactorme: similar methods.
- #lesson_practice_key_for(stats) ⇒ Object
Instance Method Details
#book_practice_key_for(student) ⇒ Object
FIXME refactorme: similar methods
11 12 13 14 15 16 17 |
# File 'app/helpers/progress_helper.rb', line 11 def book_practice_key_for(student) if student.try(:last_exercise) :continue_practicing else :start_practicing end end |
#lesson_practice_key_for(stats) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/progress_helper.rb', line 2 def lesson_practice_key_for(stats) if stats.try(:started?) :continue_lesson else :start_lesson end end |