sbdevpadi 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/app/models/course.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Course < ActiveRecord::Base
2
- attr_accessible :name, :duration, :course_price, :materials, :materials_price, :application_price, :type, :priority, :index_attributes
2
+ attr_accessible :name, :duration, :course_price, :materials, :materials_price, :application_price, :type, :priority, :index_attributes, :course_ids
3
3
 
4
4
  has_and_belongs_to_many :courses, :class_name => "Course", :join_table => "course_dependencies", :association_foreign_key => :dependent_id
5
5
 
data/db/seeds.rb CHANGED
@@ -27,7 +27,9 @@ LOREM_SANS_HTML = <<-END_LOREM
27
27
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean a ante et dolor vehicula auctor.
28
28
  END_LOREM
29
29
 
30
- #Index.find('courses').indices << Index.find_all_by_name(["pro_courses", "pro_spec_courses", "pro_tec_courses", "rec_courses", "rec_spec_courses"])
30
+ Index.find('courses').indices << Index.find_all_by_name(["pro_courses", "pro_spec_courses", "pro_tec_courses", "rec_courses", "rec_spec_courses"])
31
+
32
+ Course.all.each(&:destroy)
31
33
 
32
34
  open_water=Course.create({:type=>"RecCourse",
33
35
  :priority=>1,
@@ -36,13 +38,13 @@ open_water=Course.create({:type=>"RecCourse",
36
38
  :course_price=>280,
37
39
  :materials_price=>35,
38
40
  :application_price=>0,
39
- :dependent_ids=>[],
41
+ :course_ids=>[],
40
42
  :name=>"Open Water",
41
43
  :index_attributes=>
42
44
  {:page_description=>nil,
43
45
  :photos_attributes=>
44
46
  {382=>
45
- {:priority=>nil,
47
+ {:priority=>1,
46
48
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/382/original_open-uri20110829-4-85jcbz-0.."),
47
49
  :klass=>"left",
48
50
  :name=>"Open Water"}},
@@ -67,13 +69,13 @@ advanced_open_water=Course.create({:type=>"RecCourse",
67
69
  :course_price=>280,
68
70
  :materials_price=>35,
69
71
  :application_price=>0,
70
- :dependent_ids=>[open_water],
72
+ :course_ids=>[open_water],
71
73
  :name=>"Advanced Open Water",
72
74
  :index_attributes=>
73
75
  {:page_description=>nil,
74
76
  :photos_attributes=>
75
77
  {386=>
76
- {:priority=>nil,
78
+ {:priority=>1,
77
79
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/386/original_open-uri20110829-4-wwo740-0.."),
78
80
  :klass=>"left",
79
81
  :name=>"Advanced Open Water"}},
@@ -99,7 +101,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
99
101
  :course_price=>73,
100
102
  :materials_price=>37,
101
103
  :application_price=>0,
102
- :dependent_ids=>[open_water],
104
+ :course_ids=>[open_water],
103
105
  :name=>"Enriched Air Nitrox",
104
106
  :index_attributes=>
105
107
  {:page_description=>nil,
@@ -116,7 +118,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
116
118
  :course_price=>180,
117
119
  :materials_price=>20,
118
120
  :application_price=>0,
119
- :dependent_ids=>[open_water],
121
+ :course_ids=>[open_water],
120
122
  :name=>"Night",
121
123
  :index_attributes=>
122
124
  {:page_description=>nil,
@@ -133,13 +135,13 @@ advanced_open_water=Course.create({:type=>"RecCourse",
133
135
  :course_price=>180,
134
136
  :materials_price=>20,
135
137
  :application_price=>0,
136
- :dependent_ids=>[open_water],
138
+ :course_ids=>[open_water],
137
139
  :name=>"Peak Performance Buoyancy",
138
140
  :index_attributes=>
139
141
  {:page_description=>nil,
140
142
  :photos_attributes=>
141
143
  {383=>
142
- {:priority=>nil,
144
+ {:priority=>1,
143
145
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/383/original_open-uri20110829-4-x6wlmk-0.."),
144
146
  :klass=>"left",
145
147
  :name=>"Peak Performance Buoyancy"}},
@@ -164,7 +166,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
164
166
  :course_price=>180,
165
167
  :materials_price=>20,
166
168
  :application_price=>0,
167
- :dependent_ids=>[open_water],
169
+ :course_ids=>[open_water],
168
170
  :name=>"Naturalist",
169
171
  :index_attributes=>
170
172
  {:page_description=>nil,
@@ -181,13 +183,13 @@ advanced_open_water=Course.create({:type=>"RecCourse",
181
183
  :course_price=>180,
182
184
  :materials_price=>20,
183
185
  :application_price=>0,
184
- :dependent_ids=>[open_water],
186
+ :course_ids=>[open_water],
185
187
  :name=>"Navigation",
186
188
  :index_attributes=>
187
189
  {:page_description=>nil,
188
190
  :photos_attributes=>
189
191
  {384=>
190
- {:priority=>nil,
192
+ {:priority=>1,
191
193
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/384/original_open-uri20110829-4-vux2rd-0.."),
192
194
  :klass=>"left",
193
195
  :name=>"Underwater Navigator"}},
@@ -212,7 +214,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
212
214
  :course_price=>140,
213
215
  :materials_price=>20,
214
216
  :application_price=>0,
215
- :dependent_ids=>[open_water],
217
+ :course_ids=>[open_water],
216
218
  :name=>"Boat",
217
219
  :index_attributes=>
218
220
  {:page_description=>nil,
@@ -229,7 +231,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
229
231
  :course_price=>140,
230
232
  :materials_price=>20,
231
233
  :application_price=>0,
232
- :dependent_ids=>[open_water],
234
+ :course_ids=>[open_water],
233
235
  :name=>"Drift",
234
236
  :index_attributes=>
235
237
  {:page_description=>nil,
@@ -246,7 +248,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
246
248
  :course_price=>150,
247
249
  :materials_price=>25,
248
250
  :application_price=>0,
249
- :dependent_ids=>[open_water],
251
+ :course_ids=>[open_water],
250
252
  :name=>"Gas Blender",
251
253
  :index_attributes=>
252
254
  {:page_description=>nil,
@@ -263,7 +265,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
263
265
  :course_price=>100,
264
266
  :materials_price=>20,
265
267
  :application_price=>0,
266
- :dependent_ids=>[open_water,navigation],
268
+ :course_ids=>[open_water,navigation],
267
269
  :name=>"Search and Recovery",
268
270
  :index_attributes=>
269
271
  {:page_description=>nil,
@@ -280,13 +282,13 @@ advanced_open_water=Course.create({:type=>"RecCourse",
280
282
  :course_price=>140,
281
283
  :materials_price=>20,
282
284
  :application_price=>0,
283
- :dependent_ids=>[],
285
+ :course_ids=>[],
284
286
  :name=>"Digital Underwater Photography",
285
287
  :index_attributes=>
286
288
  {:page_description=>nil,
287
289
  :photos_attributes=>
288
290
  {385=>
289
- {:priority=>nil,
291
+ {:priority=>1,
290
292
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/385/original_open-uri20110829-4-ojdxe1-0.."),
291
293
  :klass=>"left",
292
294
  :name=>"Underwater Photographer"}},
@@ -311,7 +313,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
311
313
  :course_price=>100,
312
314
  :materials_price=>25,
313
315
  :application_price=>0,
314
- :dependent_ids=>[],
316
+ :course_ids=>[],
315
317
  :name=>"O2 Provider",
316
318
  :index_attributes=>
317
319
  {:page_description=>nil,
@@ -328,13 +330,13 @@ advanced_open_water=Course.create({:type=>"RecCourse",
328
330
  :course_price=>400,
329
331
  :materials_price=>20,
330
332
  :application_price=>0,
331
- :dependent_ids=>[open_water,advanced_open_water],
333
+ :course_ids=>[open_water,advanced_open_water],
332
334
  :name=>"Wreck",
333
335
  :index_attributes=>
334
336
  {:page_description=>nil,
335
337
  :photos_attributes=>
336
338
  {388=>
337
- {:priority=>nil,
339
+ {:priority=>1,
338
340
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/388/original_open-uri20110829-4-i4lwvz-0.."),
339
341
  :klass=>"left",
340
342
  :name=>"Wreck Diver"}},
@@ -359,13 +361,13 @@ advanced_open_water=Course.create({:type=>"RecCourse",
359
361
  :course_price=>200,
360
362
  :materials_price=>20,
361
363
  :application_price=>0,
362
- :dependent_ids=>[open_water,advanced_open_water],
364
+ :course_ids=>[open_water,advanced_open_water],
363
365
  :name=>"Deep",
364
366
  :index_attributes=>
365
367
  {:page_description=>nil,
366
368
  :photos_attributes=>
367
369
  {387=>
368
- {:priority=>nil,
370
+ {:priority=>1,
369
371
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/387/original_open-uri20110829-4-1hoewh1-0.."),
370
372
  :klass=>"left",
371
373
  :name=>"Deep Diver"}},
@@ -389,13 +391,13 @@ advanced_open_water=Course.create({:type=>"RecCourse",
389
391
  :course_price=>100,
390
392
  :materials_price=>15,
391
393
  :application_price=>0,
392
- :dependent_ids=>[],
394
+ :course_ids=>[],
393
395
  :name=>"Emergency First Responder",
394
396
  :index_attributes=>
395
397
  {:page_description=>nil,
396
398
  :photos_attributes=>
397
399
  {389=>
398
- {:priority=>nil,
400
+ {:priority=>1,
399
401
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/389/original_open-uri20110829-4-b1ep0d-0.."),
400
402
  :klass=>"left",
401
403
  :name=>"Emergency First Response"}},
@@ -417,14 +419,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
417
419
  :course_price=>330,
418
420
  :materials_price=>30,
419
421
  :application_price=>0,
420
- :dependent_ids=>
422
+ :course_ids=>
421
423
  [open_water,advanced_open_water,emergency_first_responder],
422
424
  :name=>"Rescue Diver",
423
425
  :index_attributes=>
424
426
  {:page_description=>"",
425
427
  :photos_attributes=>
426
428
  {390=>
427
- {:priority=>nil,
429
+ {:priority=>1,
428
430
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/390/original_open-uri20110829-4-9pyam2-0.."),
429
431
  :klass=>"left",
430
432
  :name=>"Rescue Diver"}},
@@ -448,14 +450,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
448
450
  :course_price=>600,
449
451
  :materials_price=>250,
450
452
  :application_price=>85,
451
- :dependent_ids=>
453
+ :course_ids=>
452
454
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver],
453
455
  :name=>"Divemaster",
454
456
  :index_attributes=>
455
457
  {:page_description=>nil,
456
458
  :photos_attributes=>
457
459
  {391=>
458
- {:priority=>nil,
460
+ {:priority=>1,
459
461
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/391/original_open-uri20110829-4-9subth-0.."),
460
462
  :klass=>"left",
461
463
  :name=>"Divemaster Internship"}},
@@ -480,14 +482,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
480
482
  :course_price=>895,
481
483
  :materials_price=>450,
482
484
  :application_price=>625,
483
- :dependent_ids=>
485
+ :course_ids=>
484
486
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster],
485
487
  :name=>"Open Water Scuba Instructor",
486
488
  :index_attributes=>
487
489
  {:page_description=>nil,
488
490
  :photos_attributes=>
489
491
  {392=>
490
- {:priority=>nil,
492
+ {:priority=>1,
491
493
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/392/original_open-uri20110829-4-40iigk-0.."),
492
494
  :klass=>"left",
493
495
  :name=>"Open Water Scuba Instructor"}},
@@ -512,14 +514,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
512
514
  :course_price=>50,
513
515
  :materials_price=>0,
514
516
  :application_price=>0,
515
- :dependent_ids=>
517
+ :course_ids=>
516
518
  [open_water,enriched_air_nitrox,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
517
519
  :name=>"Enriched Air Nitrox Instructor",
518
520
  :index_attributes=>
519
521
  {:page_description=>nil,
520
522
  :photos_attributes=>
521
523
  {393=>
522
- {:priority=>nil,
524
+ {:priority=>1,
523
525
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/393/original_open-uri20110829-4-d40ewn-0.."),
524
526
  :klass=>"left",
525
527
  :name=>"Enriched Air Nitrox"}},
@@ -544,7 +546,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
544
546
  :course_price=>200,
545
547
  :materials_price=>20,
546
548
  :application_price=>0,
547
- :dependent_ids=>
549
+ :course_ids=>
548
550
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
549
551
  :name=>"Wreck Instructor",
550
552
  :index_attributes=>
@@ -562,7 +564,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
562
564
  :course_price=>100,
563
565
  :materials_price=>20,
564
566
  :application_price=>0,
565
- :dependent_ids=>
567
+ :course_ids=>
566
568
  [open_water,
567
569
  advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
568
570
  :name=>"Night Instructor",
@@ -581,7 +583,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
581
583
  :course_price=>150,
582
584
  :materials_price=>20,
583
585
  :application_price=>0,
584
- :dependent_ids=>
586
+ :course_ids=>
585
587
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
586
588
  :name=>"Deep Instructor",
587
589
  :index_attributes=>
@@ -599,7 +601,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
599
601
  :course_price=>200,
600
602
  :materials_price=>20,
601
603
  :application_price=>0,
602
- :dependent_ids=>
604
+ :course_ids=>
603
605
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
604
606
  :name=>"Search and Recovery Instructor",
605
607
  :index_attributes=>
@@ -617,7 +619,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
617
619
  :course_price=>150,
618
620
  :materials_price=>20,
619
621
  :application_price=>0,
620
- :dependent_ids=>
622
+ :course_ids=>
621
623
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,"open_water_scuba_instructor"],
622
624
  :name=>"Naturalist Instructor",
623
625
  :index_attributes=>
@@ -635,7 +637,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
635
637
  :course_price=>150,
636
638
  :materials_price=>20,
637
639
  :application_price=>0,
638
- :dependent_ids=>
640
+ :course_ids=>
639
641
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
640
642
  :name=>"Navigation Instructor",
641
643
  :index_attributes=>
@@ -653,7 +655,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
653
655
  :course_price=>150,
654
656
  :materials_price=>20,
655
657
  :application_price=>0,
656
- :dependent_ids=>
658
+ :course_ids=>
657
659
  [open_water,
658
660
  advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
659
661
  :name=>"Boat Instructor",
@@ -672,7 +674,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
672
674
  :course_price=>100,
673
675
  :materials_price=>20,
674
676
  :application_price=>0,
675
- :dependent_ids=>
677
+ :course_ids=>
676
678
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
677
679
  :name=>"Drift Instructor",
678
680
  :index_attributes=>
@@ -690,7 +692,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
690
692
  :course_price=>75,
691
693
  :materials_price=>20,
692
694
  :application_price=>0,
693
- :dependent_ids=>
695
+ :course_ids=>
694
696
  [open_water,enriched_air_nitrox,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor,enriched_air_nitrox_instructor],
695
697
  :name=>"Gas Blender Instructor",
696
698
  :index_attributes=>
@@ -708,7 +710,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
708
710
  :course_price=>100,
709
711
  :materials_price=>20,
710
712
  :application_price=>0,
711
- :dependent_ids=>
713
+ :course_ids=>
712
714
  [open_water,
713
715
  advanced_open_water,emergency_first_responder,rescue_diver,divemaster],
714
716
  :name=>"Digital Underwater Photography Instructor",
@@ -727,7 +729,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
727
729
  :course_price=>50,
728
730
  :materials_price=>20,
729
731
  :application_price=>0,
730
- :dependent_ids=>
732
+ :course_ids=>
731
733
  [open_water,
732
734
  advanced_open_water,emergency_first_responder,rescue_diver,divemaster],
733
735
  :name=>"O2 Provider Instructor",
@@ -746,7 +748,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
746
748
  :course_price=>250,
747
749
  :materials_price=>135,
748
750
  :application_price=>85,
749
- :dependent_ids=>
751
+ :course_ids=>
750
752
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster],
751
753
  :name=>"EFR Instructor",
752
754
  :index_attributes=>
@@ -764,14 +766,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
764
766
  :course_price=>600,
765
767
  :materials_price=>20,
766
768
  :application_price=>0,
767
- :dependent_ids=>
769
+ :course_ids=>
768
770
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor],
769
771
  :name=>"Master Scuba Diver Trainer",
770
772
  :index_attributes=>
771
773
  {:page_description=>nil,
772
774
  :photos_attributes=>
773
775
  {394=>
774
- {:priority=>nil,
776
+ {:priority=>1,
775
777
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/394/original_open-uri20110829-4-nuwvan-0.."),
776
778
  :klass=>"left",
777
779
  :name=>"Master Scuba Diver Trainer"}},
@@ -796,14 +798,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
796
798
  :course_price=>500,
797
799
  :materials_price=>300,
798
800
  :application_price=>90,
799
- :dependent_ids=>
801
+ :course_ids=>
800
802
  [open_water,advanced_open_water,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor,efr_instructor,master_scuba_diver_trainer],
801
803
  :name=>"Staff Instructor",
802
804
  :index_attributes=>
803
805
  {:page_description=>nil,
804
806
  :photos_attributes=>
805
807
  {395=>
806
- {:priority=>nil,
808
+ {:priority=>1,
807
809
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/395/original_open-uri20110829-4-m5qbjo-0.."),
808
810
  :klass=>"left",
809
811
  :name=>"Idc Staff Instructor"}},
@@ -828,7 +830,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
828
830
  :course_price=>400,
829
831
  :materials_price=>50,
830
832
  :application_price=>0,
831
- :dependent_ids=>
833
+ :course_ids=>
832
834
  [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver],
833
835
  :name=>"Tec 40",
834
836
  :index_attributes=>
@@ -839,7 +841,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
839
841
  :title=>"tec_40",
840
842
  :texts_attributes=>
841
843
  {656=>
842
- {:priority=>nil,
844
+ {:priority=>1,
843
845
  :content=>
844
846
  " <h3>Tec 40</h3>\n <p>The Tec 40 course\n is your introduction the world of Tec diving. In this course you\n will learn how to fit and configure a technical rig. Whilst we do\n have rental equipment available you are best advised to bring your\n own or buy from us a rig to train in, be it a backplate and wing or\n side-mount system. That way you will be training in the equipment\n you will use after the course and benefit from our advice and\n experience in adjusting it to fit you perfectly (which takes hours\n not minutes!). We have the full line of Diverite equipment available\n at excellent prices.</p>\n <p>Once you have\n sorted out the equipment you will be using we will spend time in the\n classroom discussing the new challenges and procedures will be facing\n as a technical diver. Planning a technical dive takes attention to\n detail, time and software. Training you in the use of this software\n and helping you get the most out of your computer is a large part of\n the time you will spend in the classroom. The biggest difference\n between recreational and technical diving is the need to plan your\n gas consumption during a dive since running out of gas on a\n decompression dive IS NOT AN OPTION! You will also be learning new\n procedures and checklists which are used before and during the dive\n to ensure remain safe when switching gases and performing\n decompression stops.</p>\n <p>There are four\n dives in the Tec 40 course, each dive builds upon the skills learned\n in the previous dive. Each dive is to a progressively deeper depth\n as you get more familiar with the new equipment and procedures.</p>\n <p>The first dive\n will be conducted in the shallows of Half Moon Bay, or a nearby\n shallow divesite. With warm crystal clear water we will have all the\n time we need to introduce you to the equipment and practice the basic\n procedures you will use on every dive you do as a Tec diver. You will\n handle multiple tanks, start calculating your gas consumption rate,\n practice out of air emergencies, refine your weighting and buoyancy\n and start learning how to deal with valve or regulator failures. You\n will also learn how to deploy a lift bag and perform a simulated\n decompression stop.</p>\n <p>The second dive\n will take you to the open water but still a relatively shallow\n divesite. On this dive you will continue practicing many of the\n skills from dive one, but with a greater focus on calculating your\n air consumption rate. We will also start testing your time, depth\n and gas awareness, since technical diving, much like flying a plane,\n involves constant alertness to potential problems by monitoring you\n multiple gauges. It is this awareness which stops a minor issue\n becoming a major emergency.</p>\n <p>The third dive\n takes you yet deeper and continues building upon the skills from\n dives one and two, on this dive we are looking to see you that the\n skills you have been introduced to are becoming instinctive and\n fluid. Exercises introduced in the previous dives should be performed\n quickly and efficiently.</p>\n <p>The fourth dive\n will take you to the edge of recreational depth limits (40m/130ft),\n but beyond no decompression limits. For the first time you will have\n a decompression obligation which means keeping a cool head and using\n the skills and awareness you have developed in the previous training\n dives.</p>\n <p>Here is a summary\n of the dives and depths:</p>\n <p><B>Tec\n 40 Diver Course Key Dive Standards</B></p>\n <p><BR>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 40 Training Dive One</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Confined\n water or limited open water with ready access to water shallow\n enough to stand up in.</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 2.5 metres/8 feet</B></p>\n <p> <B>Maximum\n 10 metres/30 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>No\n stop only</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx up to EANx50</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>6:1,\n 8:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p>\t</p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 40 Training Dive Two</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 10 metres/30 feet</B></p>\n <p><B>Maximum:\n 18 metres/60 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>No\n stop only</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx up to EANx50</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>6:1,\n 8:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p>\t\t</p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 40 Training Dive Three</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 15 metres/50 feet</B></p>\n <p><B>Maximum:\n 27 metres/90 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>No\n stop only</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx up to EANx50</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>4:1,\n 6:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p>\t</p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 40 Training Dive Four</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n <p><BR>\n </p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 26 metres/85 feet</B></p>\n <p><B>Maximum:\n 40 metres/130 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>to\n 10 minutes total decompression time based on breathing bottom gas\n throughout the dive (no accelerated decompression)</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx up to EANx50</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>3:1,\n 4:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n"}},
845
847
  :keywords=>"DSAT TEC 40"}}).id
@@ -850,7 +852,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
850
852
  :course_price=>400,
851
853
  :materials_price=>0,
852
854
  :application_price=>0,
853
- :dependent_ids=>
855
+ :course_ids=>
854
856
  [open_water,
855
857
  enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,tec_40],
856
858
  :name=>"Tec 45",
@@ -862,7 +864,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
862
864
  :title=>"tec_45",
863
865
  :texts_attributes=>
864
866
  {657=>
865
- {:priority=>nil,
867
+ {:priority=>1,
866
868
  :content=>
867
869
  " <h3>Tec 45</h3>\n <p>The Tec 45 course\n builds upon your learning in the Tec 40 course, In this course you\n will start diving beyond recreational depth AND time limits as well\n as starting to use 100% Oxygen to accelerate decompression. If you\n did your Tec 40 training in a single tank configuration Tec 45 will\n also introduce you to the use of multiple tanks.</p>\n <p>The first dive is\n conducted at a shallow open water divesite. If it is a while since\n your last tec dive this will refresh your tec skills in a calm\n controlled and safe environment, if you have just taken the tec 40\n course or already have fresh skills, it is still important to perform\n the dive at shallow depths due to the complexity of the new skills\n being introduces, particularly the BCD failure skills. This is also a\n long dive meaning that shallow depths are required to ensure enough\n gas supply.</p>\n <p>The second dive\n will build upon the skills from dive one at a greater depth. During\n this dive we will start to through a few surprises at you, to not\n only test your comfort with the motor skills, but to test that your\n instinctive reactions are the correct ones and that you make the\n right decision quickly enough. Most of these surprises are focused on\n varying simulated equipment failures.</p>\n <p>The third dive\n further increases depth and the complexity of the surprises we throw\n at you, with narcosis playing a part we want you see you continue\n making the right decisions, staying aware and responding promptly\n when problems arise. By the end of this dive you should also have a\n very accurate idea of your surface air consumption rate for both the\n working part of the dive and during deco.</p>\n <p>Training dive for\n will take you deeper than you have ever gone before. Using two gases\n we will dive to 45m/145ft and perform a full decompression dive\n switching gases for conservatism. This dive is usually made at the\n point of the island where we will explore a deep ledge that is well\n known for hammerhead sightings.\n </p>\n <p>\n <B>Tec\n 45 Diver Course Key Dive Standards</B>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 45 Training Dive One</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Confined\n water or limited open water with ready access to water shallow\n enough to stand up in.</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 2.5 metres/8 feet</B></p>\n\n <p><B>Maximum\n 10 metres/30 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>No\n stop only</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx </B>\n </p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>6:1,\n 8:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p><BR>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 45 Training Dive Two</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 12 metres/40 feet</B></p>\n\n <p><B>Maximum:\n 18 metres/60 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>No\n stop only</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx up to EANx50</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>4:1,\n 6:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p><BR>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 45 Training Dive Three</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 18 metres/60 feet</B></p>\n\n <p><B>Maximum:\n 30 metres/100 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>No\n stop only</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx or oxygen</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>4:1,\n 6:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p><BR>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 45 Training Dive Four</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n\n <p><BR>\n </p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 27 metres/90 feet</B></p>\n\n <p><B>Maximum:\n 45 metres/145 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Single\n gas decompression, gas switch for conservatism</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx or oxygen</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>3:1,\n 4:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n"}},
868
870
  :keywords=>"DSAT TEC 45"}}).id
@@ -873,7 +875,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
873
875
  :course_price=>400,
874
876
  :materials_price=>0,
875
877
  :application_price=>0,
876
- :dependent_ids=>
878
+ :course_ids=>
877
879
  [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,tec_40,tec_45],
878
880
  :name=>"Tec 50",
879
881
  :index_attributes=>
@@ -884,7 +886,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
884
886
  :title=>"tec_50",
885
887
  :texts_attributes=>
886
888
  {658=>
887
- {:priority=>nil,
889
+ {:priority=>1,
888
890
  :content=>
889
891
  " <h3>Tec 50</h3>\n <p>Tec 50 continues\n building upon the skills learned in the Tec 40 and Tec 45 skills, in\n this course you will be handling more equipment and going even\n deeper. As with the previous two courses we start in shallow water,\n reacquainting you with Tec diving if it has been a while since your\n last dive and then introducing the skills needed to handle two deco\n gases rather than the one you will have been using to date.</p>\n <p>Dive one will be\n at a shallow open water dive site, we will be working on the\n weighting adjustments that are likely to be required for you to carry\n two deco cylinders and control your buoyancy throughout the dive as\n you slowly use the gases in the cylinder. Cylinders become gradually\n more buoyant as you breathe the gas, so the more tanks you take, the\n greater the change in your buoyancy profile as the dive progresses,\n learning to deal with these changes is a key focus in dive one of the\n Tec 50 course. This becomes increasingly difficult when donning and\n staging the tanks underwater and at the surface.</p>\n <p>Dive two will\n continue testing your ability to handle multiple cylinders and start\n dealing with more surprises based on realistic equipment failures.\n We also starting working on sending emergency signals to the surface,\n and planning realistic missions because diving deep for the hell of\n it isn’t a good enough reason!</p>\n <p>Dives three and\n four are where the drills and games end and we move into full\n accelerated deco dives to a depth of 50m/165ft. By this stage your\n skills, awareness and reactions have been honed enough to handle\n demanding deep dives. Typically we will do at least one if not both\n these dives around the deep Josie J wreck. With enough bottom time to\n enjoy a good tour of the wreck and surrounding deep walls, the deco\n obligations will be a challenge you are ready for.</p>\n <p>\n <p>\n <B>Tec\n 50 Diver Course Key Dive Standards</B>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 50 Training Dive One</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Confined\n water or limited open water with ready access to water shallow\n enough to stand up in.</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 2.5 metres/8 feet</B></p>\n\n <p><B>Maximum\n 10 metres/30 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>No\n stop only, five stop simulated decompression</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx </B>\n </p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>6:1,\n 8:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p><BR>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 50 Training Dive Two</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 12 metres/40 feet</B></p>\n\n <p><B>Maximum:\n 24 metres/80 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>No\n stop only, 30 minutes simulated decompression</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx </B>\n </p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>4:1,\n 6:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p><BR>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 50 Training Dive Three</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 30 metres/100 feet</B></p>\n\n <p><B>Maximum:\n 50 metres/165 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Decompression\n dive with two decompression gases</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx or oxygen</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>3:1,\n 4:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n <p><BR>\n </p>\n <TABLE WIDTH=725 BORDER=0 CELLPADDING=8 CELLSPACING=0>\n <COL WIDTH=346>\n <COL WIDTH=346>\n <TR>\n <TD COLSPAN=2 WIDTH=709 VALIGN=TOP>\n <p><B>Tec\n 50 Training Dive Four</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Environment:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Open\n water</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Depths:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Minimum:\n 30 metres/100 feet</B></p>\n\n <p><B>Maximum:\n 50 metres/165 feet</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Decompression:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>Decompression\n dive with two decompression gases</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Gases:\n </p>\n </TD>\n <TD WIDTH=346>\n <p><B>Air,\n EANx or oxygen. Trimix permitted within limited conditions.</B></p>\n </TD>\n </TR>\n <TR VALIGN=TOP>\n <TD WIDTH=346>\n <p>Ratios:</p>\n </TD>\n <TD WIDTH=346>\n <p><B>3:1,\n 4:1 with one or more certified assistants</B></p>\n </TD>\n </TR>\n </TABLE>\n"}},
890
892
  :keywords=>"DSAT TEC 50"}}).id
@@ -895,7 +897,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
895
897
  :course_price=>600,
896
898
  :materials_price=>50,
897
899
  :application_price=>0,
898
- :dependent_ids=>
900
+ :course_ids=>
899
901
  [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,tec_40,tec_45,tec_50],
900
902
  :name=>"Tec 65",
901
903
  :index_attributes=>
@@ -913,7 +915,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
913
915
  :course_price=>600,
914
916
  :materials_price=>0,
915
917
  :application_price=>0,
916
- :dependent_ids=>
918
+ :course_ids=>
917
919
  [open_water,
918
920
  enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,tec_40,tec_45,tec_50,tec_65],
919
921
  :name=>"Tec Trimix",
@@ -932,7 +934,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
932
934
  :course_price=>400,
933
935
  :materials_price=>150,
934
936
  :application_price=>0,
935
- :dependent_ids=>
937
+ :course_ids=>
936
938
  [open_water,
937
939
  enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor,enriched_air_nitrox_instructor,deep_instructor,tec_40,tec_45],
938
940
  :name=>"Tec Instructor",
@@ -951,7 +953,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
951
953
  :course_price=>400,
952
954
  :materials_price=>0,
953
955
  :application_price=>0,
954
- :dependent_ids=>
956
+ :course_ids=>
955
957
  [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor,enriched_air_nitrox_instructor,deep_instructor,tec_40,tec_45,tec_50],
956
958
  :name=>"Tec Deep Instructor",
957
959
  :index_attributes=>
@@ -969,7 +971,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
969
971
  :course_price=>400,
970
972
  :materials_price=>150,
971
973
  :application_price=>0,
972
- :dependent_ids=>
974
+ :course_ids=>
973
975
  [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,divemaster,open_water_scuba_instructor,enriched_air_nitrox_instructor,deep_instructor,tec_40,tec_45,tec_50,tec_65,tec_trimix,tec_deep_instructor],
974
976
  :name=>"Tec Trimix Instructor",
975
977
  :index_attributes=>
@@ -987,13 +989,13 @@ advanced_open_water=Course.create({:type=>"RecCourse",
987
989
  :course_price=>100,
988
990
  :materials_price=>0,
989
991
  :application_price=>0,
990
- :dependent_ids=>[],
992
+ :course_ids=>[],
991
993
  :name=>"Discover Scuba Diving",
992
994
  :index_attributes=>
993
995
  {:page_description=>nil,
994
996
  :photos_attributes=>
995
997
  {396=>
996
- {:priority=>nil,
998
+ {:priority=>1,
997
999
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/396/original_open-uri20110829-4-15aoz35-0.."),
998
1000
  :klass=>"left",
999
1001
  :name=>"Discover Scuba Diving"}},
@@ -1017,14 +1019,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
1017
1019
  :course_price=>1200,
1018
1020
  :materials_price=>50,
1019
1021
  :application_price=>0,
1020
- :dependent_ids=>
1022
+ :course_ids=>
1021
1023
  [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver,divemaster],
1022
1024
  :name=>"Tec Deep",
1023
1025
  :index_attributes=>
1024
1026
  {:page_description=>nil,
1025
1027
  :photos_attributes=>
1026
1028
  {397=>
1027
- {:priority=>nil,
1029
+ {:priority=>1,
1028
1030
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/397/original_open-uri20110829-4-1ndp92k-0.."),
1029
1031
  :klass=>"left",
1030
1032
  :name=>"Dsat Tec Deep"}},
@@ -1048,14 +1050,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
1048
1050
  :course_price=>180,
1049
1051
  :materials_price=>20,
1050
1052
  :application_price=>0,
1051
- :dependent_ids=>
1053
+ :course_ids=>
1052
1054
  [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver],
1053
1055
  :name=>"Discover Tec",
1054
1056
  :index_attributes=>
1055
1057
  {:page_description=>nil,
1056
1058
  :photos_attributes=>
1057
1059
  {399=>
1058
- {:priority=>nil,
1060
+ {:priority=>1,
1059
1061
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/399/original_open-uri20110829-4-1z0v9se-0.."),
1060
1062
  :klass=>"left",
1061
1063
  :name=>"Discover Tec Diving"}},
@@ -1081,14 +1083,14 @@ advanced_open_water=Course.create({:type=>"RecCourse",
1081
1083
  :course_price=>180,
1082
1084
  :materials_price=>20,
1083
1085
  :application_price=>0,
1084
- :dependent_ids=>
1086
+ :course_ids=>
1085
1087
  [open_water,enriched_air_nitrox,advanced_open_water,deep,emergency_first_responder,rescue_diver],
1086
1088
  :name=>"Tec Apprentice",
1087
1089
  :index_attributes=>
1088
1090
  {:page_description=>nil,
1089
1091
  :photos_attributes=>
1090
1092
  {398=>
1091
- {:priority=>nil,
1093
+ {:priority=>1,
1092
1094
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/398/original_open-uri20110829-4-208cfx-0.."),
1093
1095
  :klass=>"left",
1094
1096
  :name=>"Dsat Tec Apprentice"}},
@@ -1113,7 +1115,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
1113
1115
  :course_price=>180,
1114
1116
  :materials_price=>20,
1115
1117
  :application_price=>0,
1116
- :dependent_ids=>
1118
+ :course_ids=>
1117
1119
  [open_water,
1118
1120
  advanced_open_water,emergency_first_responder,rescue_diver,divemaster],
1119
1121
  :name=>"Assistant Instructor",
@@ -1121,7 +1123,7 @@ advanced_open_water=Course.create({:type=>"RecCourse",
1121
1123
  {:page_description=>nil,
1122
1124
  :photos_attributes=>
1123
1125
  {400=>
1124
- {:priority=>nil,
1126
+ {:priority=>1,
1125
1127
  :asset=> open("http://s3.amazonaws.com/small-biz-dev/photos/production/400/original_open-uri20110829-4-13enfb9-0.."),
1126
1128
  :klass=>"left",
1127
1129
  :name=>"Assistant Instructor"}},
@@ -1,3 +1,3 @@
1
1
  module Sbdevpadi
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbdevpadi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-31 00:00:00.000000000Z
12
+ date: 2011-09-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sbdevcore
16
- requirement: &2156868160 !ruby/object:Gem::Requirement
16
+ requirement: &2156156460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156868160
24
+ version_requirements: *2156156460
25
25
  description: Sbdev Padi
26
26
  email:
27
27
  - aosalias@gmail.com