app/demo_data/fake_student.rb
#These are saving for some students only.
These are saving for some students only.
These are saving for some students only .
def add_services
    generator = FakeServiceGenerator.new(@student)
    service_counts = 20.in(100) ? rand(1..5) : 0
    service_counts.times { Service.new(generator.next).save! }
    nil
  end
def add_services generator = FakeServiceGenerator . new ( @student ) service_counts = 20 . in ( 100 ) ? rand ( 1 .. 5 ) : 0 service_counts . times { Service . new ( generator . next ) . save! } nil end
These are saving for some students only.
These are saving for some students only .