Skip to content
Browse files

Be more explicit with random seed method name

  • Loading branch information...
1 parent b93c299 commit df09084b976de08ecff530560b25445610d1f0f6 @rwdaigle committed Mar 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/controllers/subjects_controller.rb
  2. +1 −1 app/models/subject.rb
View
2 app/controllers/subjects_controller.rb
@@ -39,7 +39,7 @@ def index
def quiz
@subject = current_object
- Subject.seed(params[:seed])
+ Subject.seedRandom(params[:seed])
@units = @subject.units.learned_by(current_user).random.paginate(:page => params[:page], :per_page => 1).all
@units.empty? ? response_for(:quiz_complete) : response_for(:quiz)
end
View
2 app/models/subject.rb
@@ -12,7 +12,7 @@ class Subject < ActiveRecord::Base
class << self
- def seed(seed)
+ def seedRandom(seed)
connection.execute(sanitize_sql(["SELECT SETSEED(?)", seed]))
end

0 comments on commit df09084

Please sign in to comment.
Something went wrong with that request. Please try again.