has_many_polymorphs 2.11 → 2.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. data.tar.gz.sig +0 -0
  2. data/CHANGELOG +3 -1
  3. data/Manifest +43 -61
  4. data/README +30 -0
  5. data/TODO +0 -3
  6. data/generators/tagging/tagging_generator.rb +2 -0
  7. data/generators/tagging/templates/tag_test.rb +7 -2
  8. data/generators/tagging/templates/tagging.rb +2 -2
  9. data/generators/tagging/templates/tagging_extensions.rb +49 -2
  10. data/generators/tagging/templates/tagging_test.rb +32 -9
  11. data/generators/tagging/templates/tags.yml +2 -2
  12. data/has_many_polymorphs.gemspec +20 -13
  13. data/lib/has_many_polymorphs.rb +0 -1
  14. data/lib/has_many_polymorphs/autoload.rb +45 -37
  15. data/lib/has_many_polymorphs/class_methods.rb +2 -15
  16. data/lib/has_many_polymorphs/configuration.rb +2 -2
  17. data/lib/has_many_polymorphs/rake_task_redefine_task.rb +9 -1
  18. data/test/generator/tagging_generator_test.rb +42 -0
  19. data/test/integration/app/app/controllers/bones_controller.rb +5 -0
  20. data/test/integration/app/app/helpers/bones_helper.rb +2 -0
  21. data/test/integration/app/app/models/bone.rb +2 -0
  22. data/test/integration/app/app/models/double_sti_parent.rb +2 -0
  23. data/test/integration/app/app/models/double_sti_parent_relationship.rb +2 -0
  24. data/test/integration/app/app/models/organic_substance.rb +2 -0
  25. data/test/integration/app/app/models/single_sti_parent.rb +4 -0
  26. data/test/integration/app/app/models/single_sti_parent_relationship.rb +4 -0
  27. data/test/integration/app/app/models/stick.rb +2 -0
  28. data/test/integration/app/app/models/stone.rb +2 -0
  29. data/test/integration/app/app/views/bones/index.rhtml +5 -0
  30. data/test/integration/app/config/boot.rb +97 -32
  31. data/test/integration/app/config/database.yml +8 -12
  32. data/test/integration/app/config/environment.rb +9 -3
  33. data/test/integration/app/config/environment.rb.canonical +19 -0
  34. data/test/integration/app/config/environments/development.rb +6 -5
  35. data/test/integration/app/db/migrate/001_create_sticks.rb +11 -0
  36. data/test/integration/app/db/migrate/002_create_stones.rb +11 -0
  37. data/test/integration/app/db/migrate/003_create_organic_substances.rb +11 -0
  38. data/test/integration/app/db/migrate/004_create_bones.rb +8 -0
  39. data/test/integration/app/db/migrate/005_create_single_sti_parents.rb +11 -0
  40. data/test/integration/app/db/migrate/006_create_double_sti_parents.rb +11 -0
  41. data/test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb +13 -0
  42. data/test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb +14 -0
  43. data/test/integration/app/db/migrate/009_create_library_model.rb +11 -0
  44. data/test/integration/app/db/schema.rb +21 -121
  45. data/test/integration/app/hmp_development +0 -0
  46. data/test/integration/app/lib/library_model.rb +2 -0
  47. data/test/integration/app/test/fixtures/double_sti_parent_relationships.yml +7 -0
  48. data/test/integration/app/test/fixtures/double_sti_parents.yml +7 -0
  49. data/test/integration/app/test/fixtures/organic_substances.yml +5 -0
  50. data/test/integration/app/test/fixtures/single_sti_parent_relationships.yml +7 -0
  51. data/test/integration/app/test/fixtures/single_sti_parents.yml +7 -0
  52. data/test/integration/app/test/fixtures/sticks.yml +7 -0
  53. data/test/integration/app/test/fixtures/stones.yml +7 -0
  54. data/test/integration/app/test/{unit/user_test.rb → functional/bones_controller_test.rb} +1 -3
  55. data/test/integration/app/test/test_helper.rb +1 -21
  56. data/test/integration/app/test/unit/{state_test.rb → bone_test.rb} +1 -3
  57. data/test/integration/app/test/unit/{seller_test.rb → double_sti_parent_relationship_test.rb} +1 -3
  58. data/test/integration/app/test/unit/{address_test.rb → double_sti_parent_test.rb} +1 -3
  59. data/test/integration/app/test/unit/organic_substance_test.rb +8 -0
  60. data/test/integration/app/test/unit/single_sti_parent_relationship_test.rb +8 -0
  61. data/test/integration/app/test/unit/single_sti_parent_test.rb +8 -0
  62. data/test/integration/app/test/unit/stick_test.rb +8 -0
  63. data/test/integration/app/test/unit/stone_test.rb +8 -0
  64. data/test/integration/server_test.rb +43 -0
  65. data/test/patches/symlinked_plugins_1.2.6.diff +46 -0
  66. data/test/setup.rb +6 -2
  67. data/test/test_helper.rb +32 -16
  68. data/test/unit/{polymorph_test.rb → has_many_polymorphs_test.rb} +16 -16
  69. metadata +49 -65
  70. metadata.gz.sig +0 -0
  71. data/generators/commenting/commenting_generator.rb +0 -94
  72. data/generators/commenting/templates/comment.rb +0 -33
  73. data/generators/commenting/templates/comment_test.rb +0 -12
  74. data/generators/commenting/templates/commenting.rb +0 -13
  75. data/generators/commenting/templates/commenting_extensions.rb +0 -30
  76. data/generators/commenting/templates/commenting_test.rb +0 -30
  77. data/generators/commenting/templates/commentings.yml +0 -23
  78. data/generators/commenting/templates/comments.yml +0 -13
  79. data/generators/commenting/templates/migration.rb +0 -28
  80. data/lib/has_many_polymorphs/dependencies.rb +0 -41
  81. data/test/integration/app/app/controllers/addresses_controller.rb +0 -85
  82. data/test/integration/app/app/controllers/sellers_controller.rb +0 -85
  83. data/test/integration/app/app/controllers/states_controller.rb +0 -85
  84. data/test/integration/app/app/controllers/users_controller.rb +0 -85
  85. data/test/integration/app/app/models/address.rb +0 -4
  86. data/test/integration/app/app/models/citation.rb +0 -3
  87. data/test/integration/app/app/models/citations_item.rb +0 -4
  88. data/test/integration/app/app/models/seller.rb +0 -4
  89. data/test/integration/app/app/models/state.rb +0 -3
  90. data/test/integration/app/app/models/user.rb +0 -4
  91. data/test/integration/app/db/migrate/001_create_users.rb +0 -16
  92. data/test/integration/app/db/migrate/002_create_sellers.rb +0 -14
  93. data/test/integration/app/db/migrate/003_create_addresses.rb +0 -19
  94. data/test/integration/app/db/migrate/004_create_states.rb +0 -12
  95. data/test/integration/app/db/migrate/005_add_capitalization_to_seller.rb +0 -9
  96. data/test/integration/app/db/migrate/006_add_deleted_to_user.rb +0 -9
  97. data/test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb +0 -11
  98. data/test/integration/app/db/migrate/008_create_citations.rb +0 -12
  99. data/test/integration/app/db/migrate/009_create_citations_items.rb +0 -14
  100. data/test/integration/app/generated_models/aquatic_fish.rb +0 -109
  101. data/test/integration/app/generated_models/aquatic_pupils_whale.rb +0 -13
  102. data/test/integration/app/generated_models/aquatic_whale.rb +0 -42
  103. data/test/integration/app/generated_models/beautiful_fight_relationship.rb +0 -25
  104. data/test/integration/app/generated_models/citation.rb +0 -40
  105. data/test/integration/app/generated_models/citations_item.rb +0 -12
  106. data/test/integration/app/generated_models/dog.rb +0 -183
  107. data/test/integration/app/generated_models/eaters_foodstuff.rb +0 -13
  108. data/test/integration/app/generated_models/frog.rb +0 -78
  109. data/test/integration/app/generated_models/kitten.rb +0 -161
  110. data/test/integration/app/generated_models/parentship.rb +0 -14
  111. data/test/integration/app/generated_models/person.rb +0 -53
  112. data/test/integration/app/generated_models/petfood.rb +0 -125
  113. data/test/integration/app/generated_models/polymorph_test_some_model.rb +0 -25
  114. data/test/integration/app/generated_models/seller.rb +0 -30
  115. data/test/integration/app/generated_models/tabby.rb +0 -26
  116. data/test/integration/app/generated_models/user.rb +0 -34
  117. data/test/integration/app/generated_models/wild_boar.rb +0 -87
  118. data/test/integration/app/test/fixtures/addresses.yml +0 -13
  119. data/test/integration/app/test/fixtures/citations.yml +0 -9
  120. data/test/integration/app/test/fixtures/citations_items.yml +0 -9
  121. data/test/integration/app/test/fixtures/sellers.yml +0 -10
  122. data/test/integration/app/test/fixtures/states.yml +0 -216
  123. data/test/integration/app/test/fixtures/users.yml +0 -11
  124. data/test/integration/app/test/unit/citation_test.rb +0 -10
  125. data/test/integration/app/test/unit/citations_item_test.rb +0 -10
  126. data/test/test_all.rb +0 -16
@@ -1,14 +0,0 @@
1
-
2
- class Parentship
3
-
4
- belongs_to :parent,
5
- :foreign_key => "parent_id",
6
- :class_name => "Person"
7
- # called from line 57
8
-
9
- belongs_to :kid,
10
- :foreign_type => "child_type",
11
- :polymorphic => true
12
- # called from line 57
13
-
14
- end
@@ -1,53 +0,0 @@
1
-
2
- class Person
3
-
4
- has_many_polymorphs :kids,
5
- :polymorphic_type_key => "child_type",
6
- :from => [:people],
7
- :through => :parentships,
8
- :conditions => "people.age < 10",
9
- :as => :parent
10
- # called from line 57
11
-
12
- has_many :parentships,
13
- :extend => [],
14
- :dependent => :destroy,
15
- :foreign_key => "parent_id",
16
- :class_name => "Parentship"
17
- # called from line 57
18
-
19
- has_many :people,
20
- :source => :kid,
21
- :extend => [Person::PersonPersonPolymorphicChildAssociationExtension],
22
- :limit => nil,
23
- :through => :parentships,
24
- :group => nil,
25
- :conditions => "people.age < 10",
26
- :source_type => "Person",
27
- :class_name => "Person",
28
- :order => nil
29
- # called from line 57
30
-
31
- has_many :parentships_as_child,
32
- :extend => [],
33
- :dependent => :destroy,
34
- :conditions => nil,
35
- :as => :kid,
36
- :class_name => "Parentship",
37
- :order => nil
38
- # called from line 57
39
-
40
- has_many :parents,
41
- :source => :parent,
42
- :extend => [],
43
- :foreign_key => "parent_id",
44
- :limit => nil,
45
- :through => :parentships_as_child,
46
- :group => nil,
47
- :conditions => nil,
48
- :offset => nil,
49
- :class_name => "Person",
50
- :order => nil
51
- # called from line 57
52
-
53
- end
@@ -1,125 +0,0 @@
1
-
2
- class Petfood
3
-
4
- has_many_polymorphs :eaters,
5
- :parent_extend => #<Proc:0x03ab5998@/Users/eweaver/Desktop/projects/fauna/has_many_polymorphs/trunk/test/models/petfood.rb:34>,
6
- :extend => [ExtensionModule, OtherExtensionModule, #<Proc:0x00000000@/Users/eweaver/Desktop/projects/fauna/has_many_polymorphs/trunk/test/models/petfood.rb:28>],
7
- :parent_conditions => "petfoods.name IS NULL OR petfoods.name != 'Snausages'",
8
- :foreign_key => "foodstuff_id",
9
- :parent_order => "petfoods.the_petfood_primary_key DESC",
10
- :from => [:dogs,
11
- :petfoods,
12
- :wild_boars,
13
- :kittens,
14
- :tabbies,
15
- :"aquatic/fish"],
16
- :join_extend => #<Proc:0x03ab5b28@/Users/eweaver/Desktop/projects/fauna/has_many_polymorphs/trunk/test/models/petfood.rb:29>,
17
- :conditions => "NULL IS NULL",
18
- :as => :foodstuff,
19
- :ignore_duplicates => false,
20
- :rename_individual_collections => true,
21
- :order => "eaters_foodstuffs.updated_at ASC"
22
- # called from line 57
23
-
24
- has_many :eaters_foodstuffs,
25
- :extend => [Petfood::PetfoodEaterPolymorphicJoinAssociationExtension0],
26
- :dependent => :destroy,
27
- :foreign_key => "foodstuff_id",
28
- :class_name => "EatersFoodstuff"
29
- # called from line 57
30
-
31
- has_many :eater_tabbies,
32
- :source => :eater,
33
- :extend => [Petfood::PetfoodEaterTabbyPolymorphicChildAssociationExtension, ExtensionModule, OtherExtensionModule, Petfood::PetfoodEaterPolymorphicAssociationExtension0],
34
- :limit => nil,
35
- :through => :eaters_foodstuffs,
36
- :group => nil,
37
- :conditions => "NULL IS NULL",
38
- :source_type => "Cat",
39
- :class_name => "Tabby",
40
- :order => "eaters_foodstuffs.updated_at ASC"
41
- # called from line 57
42
-
43
- has_many :eater_kittens,
44
- :source => :eater,
45
- :extend => [Petfood::PetfoodEaterKittenPolymorphicChildAssociationExtension, ExtensionModule, OtherExtensionModule, Petfood::PetfoodEaterPolymorphicAssociationExtension0],
46
- :limit => nil,
47
- :through => :eaters_foodstuffs,
48
- :group => nil,
49
- :conditions => "NULL IS NULL",
50
- :source_type => "Cat",
51
- :class_name => "Kitten",
52
- :order => "eaters_foodstuffs.updated_at ASC"
53
- # called from line 57
54
-
55
- has_many :eater_aquatic_fish,
56
- :source => :eater,
57
- :extend => [Petfood::PetfoodEaterAquaticFishPolymorphicChildAssociationExtension, ExtensionModule, OtherExtensionModule, Petfood::PetfoodEaterPolymorphicAssociationExtension0],
58
- :limit => nil,
59
- :through => :eaters_foodstuffs,
60
- :group => nil,
61
- :conditions => "NULL IS NULL",
62
- :source_type => "Aquatic::Fish",
63
- :class_name => "Aquatic::Fish",
64
- :order => "eaters_foodstuffs.updated_at ASC"
65
- # called from line 57
66
-
67
- has_many :eater_wild_boars,
68
- :source => :eater,
69
- :extend => [Petfood::PetfoodEaterWildBoarPolymorphicChildAssociationExtension, ExtensionModule, OtherExtensionModule, Petfood::PetfoodEaterPolymorphicAssociationExtension0],
70
- :limit => nil,
71
- :through => :eaters_foodstuffs,
72
- :group => nil,
73
- :conditions => "NULL IS NULL",
74
- :source_type => "WildBoar",
75
- :class_name => "WildBoar",
76
- :order => "eaters_foodstuffs.updated_at ASC"
77
- # called from line 57
78
-
79
- has_many :eater_petfoods,
80
- :source => :eater,
81
- :extend => [Petfood::PetfoodEaterPetfoodPolymorphicChildAssociationExtension, ExtensionModule, OtherExtensionModule, Petfood::PetfoodEaterPolymorphicAssociationExtension0],
82
- :limit => nil,
83
- :through => :eaters_foodstuffs,
84
- :group => nil,
85
- :conditions => "NULL IS NULL",
86
- :source_type => "Petfood",
87
- :class_name => "Petfood",
88
- :order => "eaters_foodstuffs.updated_at ASC"
89
- # called from line 57
90
-
91
- has_many :eater_dogs,
92
- :source => :eater,
93
- :extend => [Petfood::PetfoodEaterDogPolymorphicChildAssociationExtension, ExtensionModule, OtherExtensionModule, Petfood::PetfoodEaterPolymorphicAssociationExtension0],
94
- :limit => nil,
95
- :through => :eaters_foodstuffs,
96
- :group => nil,
97
- :conditions => "NULL IS NULL",
98
- :source_type => "Dog",
99
- :class_name => "Dog",
100
- :order => "eaters_foodstuffs.updated_at ASC"
101
- # called from line 57
102
-
103
- has_many :eaters_foodstuffs_as_child,
104
- :extend => [Petfood::PetfoodEaterPolymorphicJoinAssociationExtension0],
105
- :dependent => :destroy,
106
- :conditions => "NULL IS NULL OR NULL != 'Snausages'",
107
- :as => :eater,
108
- :class_name => "EatersFoodstuff",
109
- :order => "NULL DESC"
110
- # called from line 57
111
-
112
- has_many :foodstuffs_of_eaters,
113
- :source => :foodstuff,
114
- :extend => [Petfood::PetfoodEaterPolymorphicParentAssociationExtension0],
115
- :foreign_key => "foodstuff_id",
116
- :limit => nil,
117
- :through => :eaters_foodstuffs_as_child,
118
- :group => nil,
119
- :conditions => "petfoods.name IS NULL OR petfoods.name != 'Snausages'",
120
- :offset => nil,
121
- :class_name => "Petfood",
122
- :order => "petfoods.the_petfood_primary_key DESC"
123
- # called from line 57
124
-
125
- end
@@ -1,25 +0,0 @@
1
-
2
- class PolymorphTest::SomeModel
3
-
4
- has_many_polymorphs :polymorphs,
5
- :from => [:fish]
6
- # called from line 57
7
-
8
- has_many_polymorphs :polymorphs,
9
- :from => [:dog,
10
- :cats]
11
- # called from line 57
12
-
13
- has_many_polymorphs :polymorph,
14
- :from => [:dogs,
15
- :cats]
16
- # called from line 57
17
-
18
- acts_as_double_polymorphic_join ,
19
- :unimorphs => [:dogs,
20
- :cats],
21
- :polymorph => [:dogs,
22
- :cats]
23
- # called from line 57
24
-
25
- end
@@ -1,30 +0,0 @@
1
-
2
- class Seller
3
-
4
- belongs_to ,
5
- use
6
- # called from line 57
7
-
8
- has_many :citations_items,
9
- :extend => [],
10
- :dependent => :destroy,
11
- :conditions => nil,
12
- :as => :item,
13
- :class_name => "CitationsItem",
14
- :order => nil
15
- # called from line 57
16
-
17
- has_many :citations,
18
- :source => :citation,
19
- :extend => [],
20
- :foreign_key => "citation_id",
21
- :limit => nil,
22
- :through => :citations_items,
23
- :group => nil,
24
- :conditions => nil,
25
- :offset => nil,
26
- :class_name => "Citation",
27
- :order => nil
28
- # called from line 57
29
-
30
- end
@@ -1,26 +0,0 @@
1
-
2
- class Tabby
3
-
4
- has_many :eaters_foodstuffs,
5
- :extend => [Petfood::PetfoodEaterPolymorphicJoinAssociationExtension0],
6
- :dependent => :destroy,
7
- :conditions => "NULL IS NULL OR NULL != 'Snausages'",
8
- :as => :eater,
9
- :class_name => "EatersFoodstuff",
10
- :order => "NULL DESC"
11
- # called from line 57
12
-
13
- has_many :foodstuffs_of_eaters,
14
- :source => :foodstuff,
15
- :extend => [Petfood::PetfoodEaterPolymorphicParentAssociationExtension0],
16
- :foreign_key => "foodstuff_id",
17
- :limit => nil,
18
- :through => :eaters_foodstuffs,
19
- :group => nil,
20
- :conditions => "petfoods.name IS NULL OR petfoods.name != 'Snausages'",
21
- :offset => nil,
22
- :class_name => "Petfood",
23
- :order => "petfoods.the_petfood_primary_key DESC"
24
- # called from line 57
25
-
26
- end
@@ -1,34 +0,0 @@
1
-
2
- class User
3
-
4
- has_one ,
5
- selle
6
- # called from line 57
7
-
8
- has_one ,
9
- addres
10
- # called from line 57
11
-
12
- has_many :citations_items,
13
- :extend => [],
14
- :dependent => :destroy,
15
- :conditions => nil,
16
- :as => :item,
17
- :class_name => "CitationsItem",
18
- :order => nil
19
- # called from line 57
20
-
21
- has_many :citations,
22
- :source => :citation,
23
- :extend => [],
24
- :foreign_key => "citation_id",
25
- :limit => nil,
26
- :through => :citations_items,
27
- :group => nil,
28
- :conditions => nil,
29
- :offset => nil,
30
- :class_name => "Citation",
31
- :order => nil
32
- # called from line 57
33
-
34
- end
@@ -1,87 +0,0 @@
1
-
2
- class WildBoar
3
-
4
- has_many_polymorphs :enemies,
5
- :singular_reverse_association_id => :protector,
6
- :extend => [ExtensionModule, #<Proc:0x00000000@/Users/eweaver/Desktop/projects/fauna/has_many_polymorphs/trunk/test/models/beautiful_fight_relationship.rb:14>],
7
- :foreign_key => "protector_id",
8
- :is_double => true,
9
- :from => [:dogs,
10
- :kittens,
11
- :frogs],
12
- :through => :beautiful_fight_relationships,
13
- :foreign_type_key => "protector_type",
14
- :join_extend => [#<Proc:0x03be672c@/Users/eweaver/Desktop/projects/fauna/has_many_polymorphs/trunk/test/models/beautiful_fight_relationship.rb:20>],
15
- :conflicts => [:dogs,
16
- :kittens],
17
- :as => :protector
18
- # called from line 57
19
-
20
- has_many :beautiful_fight_relationships_as_protector,
21
- :extend => [WildBoar::WildBoarEnemyPolymorphicJoinAssociationExtension0],
22
- :dependent => :destroy,
23
- :foreign_key => "protector_id",
24
- :conditions => "protector_type = 'WildBoar'",
25
- :as => :protector,
26
- :class_name => "BeautifulFightRelationship"
27
- # called from line 57
28
-
29
- has_many :frogs,
30
- :source => :enemy,
31
- :extend => [WildBoar::WildBoarFrogPolymorphicChildAssociationExtension, ExtensionModule, WildBoar::WildBoarEnemyPolymorphicAssociationExtension0],
32
- :limit => nil,
33
- :through => :beautiful_fight_relationships_as_protector,
34
- :group => nil,
35
- :conditions => nil,
36
- :source_type => "Frog",
37
- :class_name => "Frog",
38
- :order => nil
39
- # called from line 57
40
-
41
- has_many :kittens,
42
- :source => :enemy,
43
- :extend => [WildBoar::WildBoarKittenPolymorphicChildAssociationExtension, ExtensionModule, WildBoar::WildBoarEnemyPolymorphicAssociationExtension0],
44
- :limit => nil,
45
- :through => :beautiful_fight_relationships_as_protector,
46
- :group => nil,
47
- :conditions => nil,
48
- :source_type => "Cat",
49
- :class_name => "Kitten",
50
- :order => nil
51
- # called from line 57
52
-
53
- has_many :dogs,
54
- :source => :enemy,
55
- :extend => [WildBoar::WildBoarDogPolymorphicChildAssociationExtension, ExtensionModule, WildBoar::WildBoarEnemyPolymorphicAssociationExtension0],
56
- :limit => nil,
57
- :through => :beautiful_fight_relationships_as_protector,
58
- :group => nil,
59
- :conditions => nil,
60
- :source_type => "Dog",
61
- :class_name => "Dog",
62
- :order => nil
63
- # called from line 57
64
-
65
- has_many :eaters_foodstuffs,
66
- :extend => [Petfood::PetfoodEaterPolymorphicJoinAssociationExtension0],
67
- :dependent => :destroy,
68
- :conditions => "NULL IS NULL OR NULL != 'Snausages'",
69
- :as => :eater,
70
- :class_name => "EatersFoodstuff",
71
- :order => "NULL DESC"
72
- # called from line 57
73
-
74
- has_many :foodstuffs_of_eaters,
75
- :source => :foodstuff,
76
- :extend => [Petfood::PetfoodEaterPolymorphicParentAssociationExtension0],
77
- :foreign_key => "foodstuff_id",
78
- :limit => nil,
79
- :through => :eaters_foodstuffs,
80
- :group => nil,
81
- :conditions => "petfoods.name IS NULL OR petfoods.name != 'Snausages'",
82
- :offset => nil,
83
- :class_name => "Petfood",
84
- :order => "petfoods.the_petfood_primary_key DESC"
85
- # called from line 57
86
-
87
- end
@@ -1,13 +0,0 @@
1
- <% 1.upto(40) do |num| %>
2
- <%="address#{num}:" %>
3
- id: <%= num %>
4
- user_id: <%= num %>
5
- name: <%= "Chicago Branch Office #{num}" %>
6
- line_1: "3344 Airport Road"
7
- line_2: "Suite 122"
8
- city: "Chicago"
9
- state_id: 15
10
- province_region: "Cook County"
11
- zip_postal_code: "43554"
12
- country_id: 2
13
- <% end %>
@@ -1,9 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
- one:
3
- id: 1
4
- created_at: 2007-10-04 17:14:07
5
- updated_at: 2007-10-04 17:14:07
6
- two:
7
- id: 2
8
- created_at: 2007-10-04 17:14:07
9
- updated_at: 2007-10-04 17:14:07
@@ -1,9 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
- one:
3
- id: 1
4
- created_at: 2007-10-04 17:14:27
5
- updated_at: 2007-10-04 17:14:27
6
- two:
7
- id: 2
8
- created_at: 2007-10-04 17:14:27
9
- updated_at: 2007-10-04 17:14:27
@@ -1,10 +0,0 @@
1
- <% 1.upto(20) do |num| %>
2
- <%="seller#{num}:" %>
3
- id: <%= num %>
4
- user_id: <%= num %>
5
- company_name: <%= "seller#{num}" %>
6
- capitalization: <%= num * 1.548 %>
7
- created_at: <%= (Time.now - num.weeks).to_s :db %>
8
- updated_at: <%= (Time.now - num.days).to_s :db %>
9
- <% end %>
10
-