@@ -437,13 +437,6 @@ class Product < ActiveRecord::Base
437437 has_one :picture , as : :imageable
438438end
439439
440- ### PORO Data - don't do this in a production app
441- $breed_data = BreedData . new
442- $breed_data. add ( Breed . new ( 0 , 'persian' ) )
443- $breed_data. add ( Breed . new ( 1 , 'siamese' ) )
444- $breed_data. add ( Breed . new ( 2 , 'sphinx' ) )
445- $breed_data. add ( Breed . new ( 3 , 'to_delete' ) )
446-
447440### OperationsProcessor
448441class CountingActiveRecordOperationsProcessor < ActiveRecordOperationsProcessor
449442 after_find_operation do
@@ -1261,30 +1254,9 @@ class BadlyNamedAttributesResource < JSONAPI::Resource
12611254end
12621255warn 'end testing Name Collisions'
12631256
1264- ### PORO DATA
1265- gas_giant = PlanetType . create ( name : 'Gas Giant' )
1266- planetoid = PlanetType . create ( name : 'Planetoid' )
1267- terrestrial = PlanetType . create ( name : 'Terrestrial' )
1268- sulfuric = PlanetType . create ( name : 'Sulfuric' )
1269- unknown = PlanetType . create ( name : 'unknown' )
1270-
1271- saturn = Planet . create ( name : 'Satern' ,
1272- description : 'Saturn is the sixth planet from the Sun and the second largest planet in the Solar System, after Jupiter.' ,
1273- planet_type_id : planetoid . id )
1274- titan = Moon . create ( name :'Titan' , description : 'Best known of the Saturn moons.' , planet_id : saturn . id )
1275- crater1 = Crater . create ( code :'S56D' , description : 'Very large crater' , moon_id : titan . id )
1276- crater2 = Crater . create ( code :'A4D3' , description : 'Small crater' , moon_id : titan . id )
1277- makemake = Planet . create ( name : 'Makemake' , description : 'A small planetoid in the Kuiperbelt.' , planet_type_id : planetoid . id )
1278- uranus = Planet . create ( name : 'Uranus' , description : 'Insert adolescent jokes here.' , planet_type_id : gas_giant . id )
1279- jupiter = Planet . create ( name : 'Jupiter' , description : 'A gas giant.' , planet_type_id : gas_giant . id )
1280- betax = Planet . create ( name : 'Beta X' , description : 'Newly discovered Planet X' , planet_type_id : unknown . id )
1281- betay = Planet . create ( name : 'Beta X' , description : 'Newly discovered Planet Y' , planet_type_id : unknown . id )
1282- betaz = Planet . create ( name : 'Beta X' , description : 'Newly discovered Planet Z' , planet_type_id : unknown . id )
1283- betaw = Planet . create ( name : 'Beta W' , description : 'Newly discovered Planet W' )
1284- Category . create ( name : 'Category A' , status : 'active' )
1285- Category . create ( name : 'Category B' , status : 'active' )
1286- Category . create ( name : 'Category C' , status : 'active' )
1287- Category . create ( name : 'Category D' , status : 'inactive' )
1288- Category . create ( name : 'Category E' , status : 'inactive' )
1289- Category . create ( name : 'Category F' , status : 'inactive' )
1290- Category . create ( name : 'Category G' , status : 'inactive' )
1257+ ### PORO Data - don't do this in a production app
1258+ $breed_data = BreedData . new
1259+ $breed_data. add ( Breed . new ( 0 , 'persian' ) )
1260+ $breed_data. add ( Breed . new ( 1 , 'siamese' ) )
1261+ $breed_data. add ( Breed . new ( 2 , 'sphinx' ) )
1262+ $breed_data. add ( Breed . new ( 3 , 'to_delete' ) )
0 commit comments