Sha256: 6f0b954e39845829e9ef18d69ece3aac171397a2fd390e8d59d8f0c1677d27af

Contents?: true

Size: 341 Bytes

Versions: 24

Compression:

Stored size: 341 Bytes

Contents

module ProgressHelper
  def lesson_practice_key_for(stats)
    if stats.try(:started?)
      :continue_lesson
    else
      :start_lesson
    end
  end

  #FIXME refactorme: similar methods
  def book_practice_key_for(student)
    if student.try(:last_exercise)
      :continue_practicing
    else
      :start_practicing
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
mumuki-laboratory-5.6.3 app/helpers/progress_helper.rb
mumuki-laboratory-5.6.2 app/helpers/progress_helper.rb
mumuki-laboratory-5.6.1 app/helpers/progress_helper.rb
mumuki-laboratory-5.6.0 app/helpers/progress_helper.rb
mumuki-laboratory-5.5.0 app/helpers/progress_helper.rb
mumuki-laboratory-5.4.0 app/helpers/progress_helper.rb
mumuki-laboratory-5.3.0 app/helpers/progress_helper.rb
mumuki-laboratory-5.2.1 app/helpers/progress_helper.rb
mumuki-laboratory-5.2.0 app/helpers/progress_helper.rb
mumuki-laboratory-5.1.1 app/helpers/progress_helper.rb
mumuki-laboratory-5.1.0 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.12 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.11 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.10 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.9 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.8 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.7 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.6 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.5 app/helpers/progress_helper.rb
mumuki-laboratory-5.0.4 app/helpers/progress_helper.rb